From 9100bdca9d265c12a45137213fca2480d605b9ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haylee=20Sch=C3=A4fer?= Date: Fri, 11 Oct 2024 16:12:50 +0200 Subject: [PATCH] remove BillableClient --- dist/skin/v2/BillableClient.d.ts | 8 -------- dist/skin/v2/BillableClient.js | 7 ------- dist/skin/v2/BillableClient.js.map | 1 - dist/skin/v2/ClientInfo.d.ts | 4 ++++ dist/skin/v2/ClientInfo.js.map | 2 +- dist/skin/v2/index.d.ts | 1 - dist/skin/v2/index.js | 1 - dist/skin/v2/index.js.map | 2 +- src/skin/v2/BillableClient.ts | 12 ------------ src/skin/v2/ClientInfo.ts | 5 +++++ src/skin/v2/index.ts | 3 +-- 11 files changed, 12 insertions(+), 34 deletions(-) delete mode 100644 dist/skin/v2/BillableClient.d.ts delete mode 100644 dist/skin/v2/BillableClient.js delete mode 100644 dist/skin/v2/BillableClient.js.map delete mode 100644 src/skin/v2/BillableClient.ts diff --git a/dist/skin/v2/BillableClient.d.ts b/dist/skin/v2/BillableClient.d.ts deleted file mode 100644 index be1ad48..0000000 --- a/dist/skin/v2/BillableClient.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ClientInfo } from "./ClientInfo"; -import { CreditType } from "../../billing"; -export interface BillableClient extends ClientInfo { - billable?: boolean; - metered?: boolean; - credits?: CreditType; -} -export declare function isBillableClient(client: ClientInfo): client is BillableClient; diff --git a/dist/skin/v2/BillableClient.js b/dist/skin/v2/BillableClient.js deleted file mode 100644 index 88c36cb..0000000 --- a/dist/skin/v2/BillableClient.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isBillableClient = isBillableClient; -function isBillableClient(client) { - return client.billable === true; -} -//# sourceMappingURL=BillableClient.js.map \ No newline at end of file diff --git a/dist/skin/v2/BillableClient.js.map b/dist/skin/v2/BillableClient.js.map deleted file mode 100644 index fca34c8..0000000 --- a/dist/skin/v2/BillableClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BillableClient.js","sourceRoot":"/","sources":["skin/v2/BillableClient.ts"],"names":[],"mappings":";;AASA,4CAEC;AAFD,SAAgB,gBAAgB,CAAC,MAAkB;IAC/C,OAAQ,MAAyB,CAAC,QAAQ,KAAK,IAAI,CAAC;AACxD,CAAC","sourcesContent":["import { ClientInfo } from \"./ClientInfo\";\r\nimport { CreditType } from \"../../billing\";\r\n\r\nexport interface BillableClient extends ClientInfo {\r\n billable?: boolean;\r\n metered?: boolean;\r\n credits?: CreditType;\r\n}\r\n\r\nexport function isBillableClient(client: ClientInfo): client is BillableClient {\r\n return (client as BillableClient).billable === true;\r\n}"]} \ No newline at end of file diff --git a/dist/skin/v2/ClientInfo.d.ts b/dist/skin/v2/ClientInfo.d.ts index de62401..1af9ed4 100644 --- a/dist/skin/v2/ClientInfo.d.ts +++ b/dist/skin/v2/ClientInfo.d.ts @@ -14,4 +14,8 @@ export interface ClientInfo { breadcrumb: string; grants?: Record; billable?: boolean; + /** metered billing **/ + metered?: boolean; + /** whether to use up paid credits **/ + credits?: boolean; } diff --git a/dist/skin/v2/ClientInfo.js.map b/dist/skin/v2/ClientInfo.js.map index b0481e8..a0f4fed 100644 --- a/dist/skin/v2/ClientInfo.js.map +++ b/dist/skin/v2/ClientInfo.js.map @@ -1 +1 @@ -{"version":3,"file":"ClientInfo.js","sourceRoot":"/","sources":["skin/v2/ClientInfo.ts"],"names":[],"mappings":"","sourcesContent":["export interface ClientInfo {\r\n /** client request date millis **/\r\n time: number;\r\n /** client user agent **/\r\n agent: string;\r\n /** client origin **/\r\n origin?: string;\r\n /** client ip **/\r\n ip: string;\r\n /** client api key (ID) **/\r\n key?: string;\r\n /** client user **/\r\n user?: string;\r\n breadcrumb: string;\r\n grants?: Record;\r\n billable?: boolean;\r\n}"]} \ No newline at end of file +{"version":3,"file":"ClientInfo.js","sourceRoot":"/","sources":["skin/v2/ClientInfo.ts"],"names":[],"mappings":"","sourcesContent":["export interface ClientInfo {\r\n /** client request date millis **/\r\n time: number;\r\n /** client user agent **/\r\n agent: string;\r\n /** client origin **/\r\n origin?: string;\r\n /** client ip **/\r\n ip: string;\r\n /** client api key (ID) **/\r\n key?: string;\r\n /** client user **/\r\n user?: string;\r\n breadcrumb: string;\r\n grants?: Record;\r\n\r\n billable?: boolean;\r\n /** metered billing **/\r\n metered?: boolean;\r\n /** whether to use up paid credits **/\r\n credits?: boolean;\r\n}"]} \ No newline at end of file diff --git a/dist/skin/v2/index.d.ts b/dist/skin/v2/index.d.ts index 6bc7b27..5e02848 100644 --- a/dist/skin/v2/index.d.ts +++ b/dist/skin/v2/index.d.ts @@ -10,4 +10,3 @@ export * from "./SkinMeta"; export * from "./ClientInfo"; export * from "./SkinSource"; export * from "./SkinInteractions"; -export * from "./BillableClient"; diff --git a/dist/skin/v2/index.js b/dist/skin/v2/index.js index 9ba1054..7fd93d3 100644 --- a/dist/skin/v2/index.js +++ b/dist/skin/v2/index.js @@ -26,5 +26,4 @@ __exportStar(require("./SkinMeta"), exports); __exportStar(require("./ClientInfo"), exports); __exportStar(require("./SkinSource"), exports); __exportStar(require("./SkinInteractions"), exports); -__exportStar(require("./BillableClient"), exports); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/skin/v2/index.js.map b/dist/skin/v2/index.js.map index ac87099..73a8eed 100644 --- a/dist/skin/v2/index.js.map +++ b/dist/skin/v2/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"/","sources":["skin/v2/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,8CAA2B;AAC3B,sDAAmC;AACnC,iDAA8B;AAC9B,6CAA2B;AAC3B,+CAA4B;AAC5B,kDAAgC;AAChC,oDAAiC;AACjC,6CAA0B;AAC1B,+CAA4B;AAC5B,+CAA4B;AAC5B,qDAAkC;AAClC,mDAAgC","sourcesContent":["export * from \"./SkinStatus\"\r\nexport * from \"./SkinInfo2\"\r\nexport * from \"./ValueAndSignature\"\r\nexport * from \"./SkinTexture2\"\r\nexport * from \"./SkinUrls\";\r\nexport * from \"./SkinHashes\"\r\nexport * from \"./GeneratorInfo\";\r\nexport * from \"./SkinVisibility2\"\r\nexport * from \"./SkinMeta\"\r\nexport * from \"./ClientInfo\"\r\nexport * from \"./SkinSource\"\r\nexport * from \"./SkinInteractions\"\r\nexport * from \"./BillableClient\""]} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"/","sources":["skin/v2/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,8CAA2B;AAC3B,sDAAmC;AACnC,iDAA8B;AAC9B,6CAA2B;AAC3B,+CAA4B;AAC5B,kDAAgC;AAChC,oDAAiC;AACjC,6CAA0B;AAC1B,+CAA4B;AAC5B,+CAA4B;AAC5B,qDAAkC","sourcesContent":["export * from \"./SkinStatus\"\r\nexport * from \"./SkinInfo2\"\r\nexport * from \"./ValueAndSignature\"\r\nexport * from \"./SkinTexture2\"\r\nexport * from \"./SkinUrls\";\r\nexport * from \"./SkinHashes\"\r\nexport * from \"./GeneratorInfo\";\r\nexport * from \"./SkinVisibility2\"\r\nexport * from \"./SkinMeta\"\r\nexport * from \"./ClientInfo\"\r\nexport * from \"./SkinSource\"\r\nexport * from \"./SkinInteractions\""]} \ No newline at end of file diff --git a/src/skin/v2/BillableClient.ts b/src/skin/v2/BillableClient.ts deleted file mode 100644 index 83a4eab..0000000 --- a/src/skin/v2/BillableClient.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ClientInfo } from "./ClientInfo"; -import { CreditType } from "../../billing"; - -export interface BillableClient extends ClientInfo { - billable?: boolean; - metered?: boolean; - credits?: CreditType; -} - -export function isBillableClient(client: ClientInfo): client is BillableClient { - return (client as BillableClient).billable === true; -} \ No newline at end of file diff --git a/src/skin/v2/ClientInfo.ts b/src/skin/v2/ClientInfo.ts index 20640ba..1c8f2cf 100644 --- a/src/skin/v2/ClientInfo.ts +++ b/src/skin/v2/ClientInfo.ts @@ -13,5 +13,10 @@ export interface ClientInfo { user?: string; breadcrumb: string; grants?: Record; + billable?: boolean; + /** metered billing **/ + metered?: boolean; + /** whether to use up paid credits **/ + credits?: boolean; } \ No newline at end of file diff --git a/src/skin/v2/index.ts b/src/skin/v2/index.ts index 69e4241..8104905 100644 --- a/src/skin/v2/index.ts +++ b/src/skin/v2/index.ts @@ -9,5 +9,4 @@ export * from "./SkinVisibility2" export * from "./SkinMeta" export * from "./ClientInfo" export * from "./SkinSource" -export * from "./SkinInteractions" -export * from "./BillableClient" \ No newline at end of file +export * from "./SkinInteractions" \ No newline at end of file