@serverbench/js 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/{Serverbench.cjs → index.cjs} +16 -6
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +99 -0
  4. package/dist/index.d.ts +99 -0
  5. package/dist/{Serverbench.js → index.js} +7 -2
  6. package/dist/index.js.map +1 -0
  7. package/package.json +4 -4
  8. package/dist/Member.cjs +0 -19
  9. package/dist/Member.cjs.map +0 -1
  10. package/dist/Member.d.cts +0 -7
  11. package/dist/Member.d.ts +0 -7
  12. package/dist/Member.js +0 -1
  13. package/dist/Member.js.map +0 -1
  14. package/dist/Serverbench-BnPNK96A.d.cts +0 -38
  15. package/dist/Serverbench-DlERhe0-.d.ts +0 -38
  16. package/dist/Serverbench.cjs.map +0 -1
  17. package/dist/Serverbench.d.cts +0 -10
  18. package/dist/Serverbench.d.ts +0 -10
  19. package/dist/Serverbench.js.map +0 -1
  20. package/dist/element/Element.cjs +0 -275
  21. package/dist/element/Element.cjs.map +0 -1
  22. package/dist/element/Element.d.cts +0 -10
  23. package/dist/element/Element.d.ts +0 -10
  24. package/dist/element/Element.js +0 -255
  25. package/dist/element/Element.js.map +0 -1
  26. package/dist/store/ICountryCurrency.cjs +0 -19
  27. package/dist/store/ICountryCurrency.cjs.map +0 -1
  28. package/dist/store/ICountryCurrency.d.cts +0 -7
  29. package/dist/store/ICountryCurrency.d.ts +0 -7
  30. package/dist/store/ICountryCurrency.js +0 -1
  31. package/dist/store/ICountryCurrency.js.map +0 -1
  32. package/dist/store/IDiscount.cjs +0 -19
  33. package/dist/store/IDiscount.cjs.map +0 -1
  34. package/dist/store/IDiscount.d.cts +0 -13
  35. package/dist/store/IDiscount.d.ts +0 -13
  36. package/dist/store/IDiscount.js +0 -1
  37. package/dist/store/IDiscount.js.map +0 -1
  38. package/dist/store/ISku.cjs +0 -19
  39. package/dist/store/ISku.cjs.map +0 -1
  40. package/dist/store/ISku.d.cts +0 -17
  41. package/dist/store/ISku.d.ts +0 -17
  42. package/dist/store/ISku.js +0 -1
  43. package/dist/store/ISku.js.map +0 -1
  44. package/dist/store/ISkuPerkUsage.cjs +0 -19
  45. package/dist/store/ISkuPerkUsage.cjs.map +0 -1
  46. package/dist/store/ISkuPerkUsage.d.cts +0 -7
  47. package/dist/store/ISkuPerkUsage.d.ts +0 -7
  48. package/dist/store/ISkuPerkUsage.js +0 -1
  49. package/dist/store/ISkuPerkUsage.js.map +0 -1
  50. package/dist/store/ISkuPrice.cjs +0 -19
  51. package/dist/store/ISkuPrice.cjs.map +0 -1
  52. package/dist/store/ISkuPrice.d.cts +0 -10
  53. package/dist/store/ISkuPrice.d.ts +0 -10
  54. package/dist/store/ISkuPrice.js +0 -1
  55. package/dist/store/ISkuPrice.js.map +0 -1
  56. package/dist/store/IStore.cjs +0 -19
  57. package/dist/store/IStore.cjs.map +0 -1
  58. package/dist/store/IStore.d.cts +0 -18
  59. package/dist/store/IStore.d.ts +0 -18
  60. package/dist/store/IStore.js +0 -1
  61. package/dist/store/IStore.js.map +0 -1
  62. package/dist/store/IStoreCategory.cjs +0 -19
  63. package/dist/store/IStoreCategory.cjs.map +0 -1
  64. package/dist/store/IStoreCategory.d.cts +0 -16
  65. package/dist/store/IStoreCategory.d.ts +0 -16
  66. package/dist/store/IStoreCategory.js +0 -1
  67. package/dist/store/IStoreCategory.js.map +0 -1
  68. package/dist/store/IStoreCategorySet.cjs +0 -19
  69. package/dist/store/IStoreCategorySet.cjs.map +0 -1
  70. package/dist/store/IStoreCategorySet.d.cts +0 -6
  71. package/dist/store/IStoreCategorySet.d.ts +0 -6
  72. package/dist/store/IStoreCategorySet.js +0 -1
  73. package/dist/store/IStoreCategorySet.js.map +0 -1
  74. package/dist/store/Store.cjs +0 -301
  75. package/dist/store/Store.cjs.map +0 -1
  76. package/dist/store/Store.d.cts +0 -10
  77. package/dist/store/Store.d.ts +0 -10
  78. package/dist/store/Store.js +0 -281
  79. package/dist/store/Store.js.map +0 -1
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/store/IDiscount.ts
17
- var IDiscount_exports = {};
18
- module.exports = __toCommonJS(IDiscount_exports);
19
- //# sourceMappingURL=IDiscount.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/store/IDiscount.ts"],"sourcesContent":["import type ISkuPrice from \"./ISkuPrice.js\"\r\n\r\nexport default interface IDiscount {\r\n id: string\r\n amount: number | null\r\n percentage: number | null\r\n absolute: number\r\n end: Date | null\r\n price: ISkuPrice\r\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,13 +0,0 @@
1
- import ISkuPrice from './ISkuPrice.cjs';
2
- import './ICountryCurrency.cjs';
3
-
4
- interface IDiscount {
5
- id: string;
6
- amount: number | null;
7
- percentage: number | null;
8
- absolute: number;
9
- end: Date | null;
10
- price: ISkuPrice;
11
- }
12
-
13
- export type { IDiscount as default };
@@ -1,13 +0,0 @@
1
- import ISkuPrice from './ISkuPrice.js';
2
- import './ICountryCurrency.js';
3
-
4
- interface IDiscount {
5
- id: string;
6
- amount: number | null;
7
- percentage: number | null;
8
- absolute: number;
9
- end: Date | null;
10
- price: ISkuPrice;
11
- }
12
-
13
- export type { IDiscount as default };
@@ -1 +0,0 @@
1
- //# sourceMappingURL=IDiscount.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/store/ISku.ts
17
- var ISku_exports = {};
18
- module.exports = __toCommonJS(ISku_exports);
19
- //# sourceMappingURL=ISku.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/store/ISku.ts"],"sourcesContent":["import type IDiscount from \"./IDiscount.js\";\r\nimport type ISkuPerkUsage from \"./ISkuPerkUsage.js\";\r\nimport type ISkuPrice from \"./ISkuPrice.js\";\r\n\r\nexport default interface ISku {\r\n\r\n id: string\r\n index: number\r\n name: string\r\n type: string\r\n perks: ISkuPerkUsage[]\r\n prices: ISkuPrice[]\r\n available: boolean\r\n discounts: IDiscount[]\r\n\r\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,17 +0,0 @@
1
- import IDiscount from './IDiscount.cjs';
2
- import ISkuPerkUsage from './ISkuPerkUsage.cjs';
3
- import ISkuPrice from './ISkuPrice.cjs';
4
- import './ICountryCurrency.cjs';
5
-
6
- interface ISku {
7
- id: string;
8
- index: number;
9
- name: string;
10
- type: string;
11
- perks: ISkuPerkUsage[];
12
- prices: ISkuPrice[];
13
- available: boolean;
14
- discounts: IDiscount[];
15
- }
16
-
17
- export type { ISku as default };
@@ -1,17 +0,0 @@
1
- import IDiscount from './IDiscount.js';
2
- import ISkuPerkUsage from './ISkuPerkUsage.js';
3
- import ISkuPrice from './ISkuPrice.js';
4
- import './ICountryCurrency.js';
5
-
6
- interface ISku {
7
- id: string;
8
- index: number;
9
- name: string;
10
- type: string;
11
- perks: ISkuPerkUsage[];
12
- prices: ISkuPrice[];
13
- available: boolean;
14
- discounts: IDiscount[];
15
- }
16
-
17
- export type { ISku as default };
@@ -1 +0,0 @@
1
- //# sourceMappingURL=ISku.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/store/ISkuPerkUsage.ts
17
- var ISkuPerkUsage_exports = {};
18
- module.exports = __toCommonJS(ISkuPerkUsage_exports);
19
- //# sourceMappingURL=ISkuPerkUsage.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/store/ISkuPerkUsage.ts"],"sourcesContent":["export default interface ISkuPerkUsage {\r\n id: string\r\n name: string\r\n amount: number | null\r\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,7 +0,0 @@
1
- interface ISkuPerkUsage {
2
- id: string;
3
- name: string;
4
- amount: number | null;
5
- }
6
-
7
- export type { ISkuPerkUsage as default };
@@ -1,7 +0,0 @@
1
- interface ISkuPerkUsage {
2
- id: string;
3
- name: string;
4
- amount: number | null;
5
- }
6
-
7
- export type { ISkuPerkUsage as default };
@@ -1 +0,0 @@
1
- //# sourceMappingURL=ISkuPerkUsage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/store/ISkuPrice.ts
17
- var ISkuPrice_exports = {};
18
- module.exports = __toCommonJS(ISkuPrice_exports);
19
- //# sourceMappingURL=ISkuPrice.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/store/ISkuPrice.ts"],"sourcesContent":["import type ICountryCurrency from \"./ICountryCurrency.js\"\r\n\r\nexport default interface ISkuPrice {\r\n\r\n id: string\r\n amount: number\r\n currency: ICountryCurrency\r\n frequency: string | null\r\n\r\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,10 +0,0 @@
1
- import ICountryCurrency from './ICountryCurrency.cjs';
2
-
3
- interface ISkuPrice {
4
- id: string;
5
- amount: number;
6
- currency: ICountryCurrency;
7
- frequency: string | null;
8
- }
9
-
10
- export type { ISkuPrice as default };
@@ -1,10 +0,0 @@
1
- import ICountryCurrency from './ICountryCurrency.js';
2
-
3
- interface ISkuPrice {
4
- id: string;
5
- amount: number;
6
- currency: ICountryCurrency;
7
- frequency: string | null;
8
- }
9
-
10
- export type { ISkuPrice as default };
@@ -1 +0,0 @@
1
- //# sourceMappingURL=ISkuPrice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/store/IStore.ts
17
- var IStore_exports = {};
18
- module.exports = __toCommonJS(IStore_exports);
19
- //# sourceMappingURL=IStore.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/store/IStore.ts"],"sourcesContent":["import type Member from \"../Member.js\";\r\nimport type ICountryCurrency from \"./ICountryCurrency.js\";\r\nimport type IStoreCategory from \"./IStoreCategory.js\";\r\nimport type IStoreCategorySet from \"./IStoreCategorySet.js\";\r\n\r\nexport default interface IStore {\r\n\r\n categories: IStoreCategory[]\r\n sets: IStoreCategorySet[]\r\n currency: ICountryCurrency\r\n country: string | null\r\n member: Member | null\r\n\r\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,18 +0,0 @@
1
- import Member from '../Member.cjs';
2
- import ICountryCurrency from './ICountryCurrency.cjs';
3
- import IStoreCategory from './IStoreCategory.cjs';
4
- import IStoreCategorySet from './IStoreCategorySet.cjs';
5
- import './ISku.cjs';
6
- import './IDiscount.cjs';
7
- import './ISkuPrice.cjs';
8
- import './ISkuPerkUsage.cjs';
9
-
10
- interface IStore {
11
- categories: IStoreCategory[];
12
- sets: IStoreCategorySet[];
13
- currency: ICountryCurrency;
14
- country: string | null;
15
- member: Member | null;
16
- }
17
-
18
- export type { IStore as default };
@@ -1,18 +0,0 @@
1
- import Member from '../Member.js';
2
- import ICountryCurrency from './ICountryCurrency.js';
3
- import IStoreCategory from './IStoreCategory.js';
4
- import IStoreCategorySet from './IStoreCategorySet.js';
5
- import './ISku.js';
6
- import './IDiscount.js';
7
- import './ISkuPrice.js';
8
- import './ISkuPerkUsage.js';
9
-
10
- interface IStore {
11
- categories: IStoreCategory[];
12
- sets: IStoreCategorySet[];
13
- currency: ICountryCurrency;
14
- country: string | null;
15
- member: Member | null;
16
- }
17
-
18
- export type { IStore as default };
@@ -1 +0,0 @@
1
- //# sourceMappingURL=IStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/store/IStoreCategory.ts
17
- var IStoreCategory_exports = {};
18
- module.exports = __toCommonJS(IStoreCategory_exports);
19
- //# sourceMappingURL=IStoreCategory.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/store/IStoreCategory.ts"],"sourcesContent":["import type ISku from \"./ISku.js\"\r\nimport type IStoreCategorySet from \"./IStoreCategorySet.js\"\r\n\r\nexport default interface IStoreCategory {\r\n id: string\r\n name: string\r\n skus: ISku[]\r\n sets: IStoreCategorySet[]\r\n policy: string | null\r\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,16 +0,0 @@
1
- import ISku from './ISku.cjs';
2
- import IStoreCategorySet from './IStoreCategorySet.cjs';
3
- import './IDiscount.cjs';
4
- import './ISkuPrice.cjs';
5
- import './ICountryCurrency.cjs';
6
- import './ISkuPerkUsage.cjs';
7
-
8
- interface IStoreCategory {
9
- id: string;
10
- name: string;
11
- skus: ISku[];
12
- sets: IStoreCategorySet[];
13
- policy: string | null;
14
- }
15
-
16
- export type { IStoreCategory as default };
@@ -1,16 +0,0 @@
1
- import ISku from './ISku.js';
2
- import IStoreCategorySet from './IStoreCategorySet.js';
3
- import './IDiscount.js';
4
- import './ISkuPrice.js';
5
- import './ICountryCurrency.js';
6
- import './ISkuPerkUsage.js';
7
-
8
- interface IStoreCategory {
9
- id: string;
10
- name: string;
11
- skus: ISku[];
12
- sets: IStoreCategorySet[];
13
- policy: string | null;
14
- }
15
-
16
- export type { IStoreCategory as default };
@@ -1 +0,0 @@
1
- //# sourceMappingURL=IStoreCategory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/store/IStoreCategorySet.ts
17
- var IStoreCategorySet_exports = {};
18
- module.exports = __toCommonJS(IStoreCategorySet_exports);
19
- //# sourceMappingURL=IStoreCategorySet.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/store/IStoreCategorySet.ts"],"sourcesContent":["export default interface IStoreCategorySet {\r\n\r\n id: string\r\n name: string\r\n\r\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,6 +0,0 @@
1
- interface IStoreCategorySet {
2
- id: string;
3
- name: string;
4
- }
5
-
6
- export type { IStoreCategorySet as default };
@@ -1,6 +0,0 @@
1
- interface IStoreCategorySet {
2
- id: string;
3
- name: string;
4
- }
5
-
6
- export type { IStoreCategorySet as default };
@@ -1 +0,0 @@
1
- //# sourceMappingURL=IStoreCategorySet.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}