@nizza/core 0.3.0-alpha.4 → 0.3.0-alpha.5

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 (186) hide show
  1. package/README.md +3 -0
  2. package/dist/index.cjs +2 -0
  3. package/{src → dist}/index.d.ts +0 -1
  4. package/dist/index.mjs +2798 -0
  5. package/{src → dist}/lib/stores/NizzaStore.d.ts +1 -0
  6. package/{src → dist}/lib/types/api-graphql-types.d.ts +57 -57
  7. package/dist/lib/types/mobx-store.d.ts +3 -0
  8. package/dist/lib/types/products/product.d.ts +16 -0
  9. package/{src → dist}/lib/types/utils.d.ts +4 -4
  10. package/{src → dist}/lib/utils/Result.d.ts +1 -1
  11. package/{src → dist}/lib/utils/customStorage/utils.d.ts +1 -1
  12. package/dist/lib/utils/fingerprint.d.ts +1 -0
  13. package/{src → dist}/lib/utils/helpers.d.ts +1 -1
  14. package/{src → dist}/lib/utils/lazyLoad.d.ts +1 -1
  15. package/dist/package.json +21 -0
  16. package/package.json +10 -12
  17. package/src/environments/development.js +0 -28
  18. package/src/environments/development.js.map +0 -1
  19. package/src/environments/index.d.ts +0 -60
  20. package/src/environments/index.js +0 -11
  21. package/src/environments/index.js.map +0 -1
  22. package/src/environments/production.d.ts +0 -20
  23. package/src/environments/production.js +0 -27
  24. package/src/environments/production.js.map +0 -1
  25. package/src/environments/staging.d.ts +0 -20
  26. package/src/environments/staging.js +0 -27
  27. package/src/environments/staging.js.map +0 -1
  28. package/src/index.d.js +0 -8
  29. package/src/index.d.js.map +0 -1
  30. package/src/index.js +0 -9
  31. package/src/index.js.map +0 -1
  32. package/src/lib/constants/index.d.js +0 -3
  33. package/src/lib/constants/index.d.js.map +0 -1
  34. package/src/lib/constants/index.js +0 -3
  35. package/src/lib/constants/index.js.map +0 -1
  36. package/src/lib/constants/products.d.js +0 -3
  37. package/src/lib/constants/products.d.js.map +0 -1
  38. package/src/lib/constants/products.js +0 -6
  39. package/src/lib/constants/products.js.map +0 -1
  40. package/src/lib/domain/AggregateRoot.d.js +0 -3
  41. package/src/lib/domain/AggregateRoot.d.js.map +0 -1
  42. package/src/lib/domain/AggregateRoot.js +0 -22
  43. package/src/lib/domain/AggregateRoot.js.map +0 -1
  44. package/src/lib/domain/BaseMobxStore.d.js +0 -3
  45. package/src/lib/domain/BaseMobxStore.d.js.map +0 -1
  46. package/src/lib/domain/BaseMobxStore.js +0 -4
  47. package/src/lib/domain/BaseMobxStore.js.map +0 -1
  48. package/src/lib/domain/ValueObject.d.js +0 -3
  49. package/src/lib/domain/ValueObject.d.js.map +0 -1
  50. package/src/lib/domain/ValueObject.js +0 -12
  51. package/src/lib/domain/ValueObject.js.map +0 -1
  52. package/src/lib/domain/errors/DomainError.d.js +0 -3
  53. package/src/lib/domain/errors/DomainError.d.js.map +0 -1
  54. package/src/lib/domain/errors/DomainError.js +0 -18
  55. package/src/lib/domain/errors/DomainError.js.map +0 -1
  56. package/src/lib/domain/errors/api.d.js +0 -3
  57. package/src/lib/domain/errors/api.d.js.map +0 -1
  58. package/src/lib/domain/errors/api.js +0 -8
  59. package/src/lib/domain/errors/api.js.map +0 -1
  60. package/src/lib/domain/errors/app.d.js +0 -3
  61. package/src/lib/domain/errors/app.d.js.map +0 -1
  62. package/src/lib/domain/errors/app.js +0 -14
  63. package/src/lib/domain/errors/app.js.map +0 -1
  64. package/src/lib/domain/errors/index.d.js +0 -5
  65. package/src/lib/domain/errors/index.d.js.map +0 -1
  66. package/src/lib/domain/errors/index.js +0 -5
  67. package/src/lib/domain/errors/index.js.map +0 -1
  68. package/src/lib/domain/index.d.js +0 -6
  69. package/src/lib/domain/index.d.js.map +0 -1
  70. package/src/lib/domain/index.js +0 -6
  71. package/src/lib/domain/index.js.map +0 -1
  72. package/src/lib/providers/StoreProvider.d.js +0 -3
  73. package/src/lib/providers/StoreProvider.d.js.map +0 -1
  74. package/src/lib/providers/StoreProvider.js +0 -36
  75. package/src/lib/providers/StoreProvider.js.map +0 -1
  76. package/src/lib/providers/index.d.js +0 -3
  77. package/src/lib/providers/index.d.js.map +0 -1
  78. package/src/lib/providers/index.js +0 -3
  79. package/src/lib/providers/index.js.map +0 -1
  80. package/src/lib/stores/NizzaStore.d.js +0 -3
  81. package/src/lib/stores/NizzaStore.d.js.map +0 -1
  82. package/src/lib/stores/NizzaStore.js +0 -18
  83. package/src/lib/stores/NizzaStore.js.map +0 -1
  84. package/src/lib/stores/index.d.js +0 -3
  85. package/src/lib/stores/index.d.js.map +0 -1
  86. package/src/lib/stores/index.js +0 -3
  87. package/src/lib/stores/index.js.map +0 -1
  88. package/src/lib/types/api-graphql-types.d.js +0 -3
  89. package/src/lib/types/api-graphql-types.d.js.map +0 -1
  90. package/src/lib/types/api-graphql-types.js +0 -2003
  91. package/src/lib/types/api-graphql-types.js.map +0 -1
  92. package/src/lib/types/app-module.d.js +0 -3
  93. package/src/lib/types/app-module.d.js.map +0 -1
  94. package/src/lib/types/app-module.js +0 -3
  95. package/src/lib/types/app-module.js.map +0 -1
  96. package/src/lib/types/index.d.js +0 -9
  97. package/src/lib/types/index.d.js.map +0 -1
  98. package/src/lib/types/index.js +0 -9
  99. package/src/lib/types/index.js.map +0 -1
  100. package/src/lib/types/mobx-store.d.js +0 -3
  101. package/src/lib/types/mobx-store.d.js.map +0 -1
  102. package/src/lib/types/mobx-store.d.ts +0 -3
  103. package/src/lib/types/mobx-store.js +0 -3
  104. package/src/lib/types/mobx-store.js.map +0 -1
  105. package/src/lib/types/nizzaGlobalObject.d.js +0 -3
  106. package/src/lib/types/nizzaGlobalObject.d.js.map +0 -1
  107. package/src/lib/types/nizzaGlobalObject.js +0 -3
  108. package/src/lib/types/nizzaGlobalObject.js.map +0 -1
  109. package/src/lib/types/products/base.d.js +0 -8
  110. package/src/lib/types/products/base.d.js.map +0 -1
  111. package/src/lib/types/products/base.js +0 -8
  112. package/src/lib/types/products/base.js.map +0 -1
  113. package/src/lib/types/products/index.d.js +0 -4
  114. package/src/lib/types/products/index.d.js.map +0 -1
  115. package/src/lib/types/products/index.js +0 -4
  116. package/src/lib/types/products/index.js.map +0 -1
  117. package/src/lib/types/products/product.d.js +0 -3
  118. package/src/lib/types/products/product.d.js.map +0 -1
  119. package/src/lib/types/products/product.d.ts +0 -16
  120. package/src/lib/types/products/product.js +0 -3
  121. package/src/lib/types/products/product.js.map +0 -1
  122. package/src/lib/types/utils.d.js +0 -3
  123. package/src/lib/types/utils.d.js.map +0 -1
  124. package/src/lib/types/utils.js +0 -4
  125. package/src/lib/types/utils.js.map +0 -1
  126. package/src/lib/utils/Result.d.js +0 -3
  127. package/src/lib/utils/Result.d.js.map +0 -1
  128. package/src/lib/utils/Result.js +0 -63
  129. package/src/lib/utils/Result.js.map +0 -1
  130. package/src/lib/utils/apiCall.d.js +0 -3
  131. package/src/lib/utils/apiCall.d.js.map +0 -1
  132. package/src/lib/utils/apiCall.js +0 -28
  133. package/src/lib/utils/apiCall.js.map +0 -1
  134. package/src/lib/utils/customStorage/MemoryStorage.d.js +0 -3
  135. package/src/lib/utils/customStorage/MemoryStorage.d.js.map +0 -1
  136. package/src/lib/utils/customStorage/MemoryStorage.js +0 -44
  137. package/src/lib/utils/customStorage/MemoryStorage.js.map +0 -1
  138. package/src/lib/utils/customStorage/index.d.js +0 -3
  139. package/src/lib/utils/customStorage/index.d.js.map +0 -1
  140. package/src/lib/utils/customStorage/index.js +0 -36
  141. package/src/lib/utils/customStorage/index.js.map +0 -1
  142. package/src/lib/utils/customStorage/utils.d.js +0 -3
  143. package/src/lib/utils/customStorage/utils.d.js.map +0 -1
  144. package/src/lib/utils/customStorage/utils.js +0 -24
  145. package/src/lib/utils/customStorage/utils.js.map +0 -1
  146. package/src/lib/utils/fingerprint.d.js +0 -3
  147. package/src/lib/utils/fingerprint.d.js.map +0 -1
  148. package/src/lib/utils/fingerprint.d.ts +0 -1
  149. package/src/lib/utils/fingerprint.js +0 -14
  150. package/src/lib/utils/fingerprint.js.map +0 -1
  151. package/src/lib/utils/helpers.d.js +0 -3
  152. package/src/lib/utils/helpers.d.js.map +0 -1
  153. package/src/lib/utils/helpers.js +0 -15
  154. package/src/lib/utils/helpers.js.map +0 -1
  155. package/src/lib/utils/index.d.js +0 -8
  156. package/src/lib/utils/index.d.js.map +0 -1
  157. package/src/lib/utils/index.js +0 -8
  158. package/src/lib/utils/index.js.map +0 -1
  159. package/src/lib/utils/lazyLoad.d.js +0 -3
  160. package/src/lib/utils/lazyLoad.d.js.map +0 -1
  161. package/src/lib/utils/lazyLoad.js +0 -17
  162. package/src/lib/utils/lazyLoad.js.map +0 -1
  163. /package/{src/environments/development.d.ts → dist/environments/environment.d.ts} +0 -0
  164. /package/{src → dist}/lib/constants/index.d.ts +0 -0
  165. /package/{src → dist}/lib/constants/products.d.ts +0 -0
  166. /package/{src → dist}/lib/domain/AggregateRoot.d.ts +0 -0
  167. /package/{src → dist}/lib/domain/BaseMobxStore.d.ts +0 -0
  168. /package/{src → dist}/lib/domain/ValueObject.d.ts +0 -0
  169. /package/{src → dist}/lib/domain/errors/DomainError.d.ts +0 -0
  170. /package/{src → dist}/lib/domain/errors/api.d.ts +0 -0
  171. /package/{src → dist}/lib/domain/errors/app.d.ts +0 -0
  172. /package/{src → dist}/lib/domain/errors/index.d.ts +0 -0
  173. /package/{src → dist}/lib/domain/index.d.ts +0 -0
  174. /package/{src → dist}/lib/providers/StoreProvider.d.ts +0 -0
  175. /package/{src → dist}/lib/providers/index.d.ts +0 -0
  176. /package/{src → dist}/lib/stores/index.d.ts +0 -0
  177. /package/{src → dist}/lib/types/app-module.d.ts +0 -0
  178. /package/{src → dist}/lib/types/index.d.ts +0 -0
  179. /package/{src → dist}/lib/types/nizzaGlobalObject.d.ts +0 -0
  180. /package/{src → dist}/lib/types/products/base.d.ts +0 -0
  181. /package/{src → dist}/lib/types/products/index.d.ts +0 -0
  182. /package/{src → dist}/lib/utils/apiCall.d.ts +0 -0
  183. /package/{src → dist}/lib/utils/customStorage/MemoryStorage.d.ts +0 -0
  184. /package/{src → dist}/lib/utils/customStorage/index.d.ts +0 -0
  185. /package/{src → dist}/lib/utils/index.d.ts +0 -0
  186. /package/{src/typings/libs.d.js → dist/typings/libs.d.ts} +0 -0
@@ -1,27 +0,0 @@
1
- const { NZ_AWS_REGION , NZ_BACKOFFICE_BACK_URL , NZ_CORE_SERVICES_GRAPHQL_URL , NZ_CORE_SERVICES_REST_URL } = import.meta.env;
2
- export const environment = {
3
- AWS: {
4
- region: NZ_AWS_REGION,
5
- cognito: {
6
- userPoolId: 'us-east-1_EZ7wuZ4ig',
7
- userPoolWebClientId: '2jok7cst8ebf6ppscrhji57gvr'
8
- }
9
- },
10
- // Back services
11
- apiUrls: {
12
- restV1: NZ_BACKOFFICE_BACK_URL || 'https://b133h34s56.execute-api.us-east-1.amazonaws.com',
13
- restV2: NZ_CORE_SERVICES_REST_URL || 'https://core-services-prod.nizza.com/api',
14
- graphql: NZ_CORE_SERVICES_GRAPHQL_URL || 'https://core-services-prod.nizza.com/graphql'
15
- },
16
- publicUrls: {
17
- // Public app url
18
- platformSite: 'https://platformstaging.nizza.com',
19
- // Nizza CDN
20
- nizzaCdn: 'https://cdn.nizza.com',
21
- // Bundle
22
- bundleSite: 'https://bundle.nizza.com'
23
- }
24
- };
25
- export default environment;
26
-
27
- //# sourceMappingURL=staging.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/environments/staging.ts"],"sourcesContent":["const {\n NZ_AWS_REGION,\n NZ_BACKOFFICE_BACK_URL,\n NZ_CORE_SERVICES_GRAPHQL_URL,\n NZ_CORE_SERVICES_REST_URL,\n} = import.meta.env;\n\nexport const environment = {\n AWS: {\n region: NZ_AWS_REGION,\n cognito: {\n userPoolId: 'us-east-1_EZ7wuZ4ig',\n userPoolWebClientId: '2jok7cst8ebf6ppscrhji57gvr',\n },\n },\n\n // Back services\n apiUrls: {\n restV1:\n NZ_BACKOFFICE_BACK_URL ||\n 'https://b133h34s56.execute-api.us-east-1.amazonaws.com',\n restV2:\n NZ_CORE_SERVICES_REST_URL || 'https://core-services-prod.nizza.com/api',\n graphql:\n NZ_CORE_SERVICES_GRAPHQL_URL ||\n 'https://core-services-prod.nizza.com/graphql',\n },\n\n publicUrls: {\n // Public app url\n platformSite: 'https://platformstaging.nizza.com',\n\n // Nizza CDN\n nizzaCdn: 'https://cdn.nizza.com',\n\n // Bundle\n bundleSite: 'https://bundle.nizza.com',\n },\n};\n\nexport default environment;\n"],"names":["NZ_AWS_REGION","NZ_BACKOFFICE_BACK_URL","NZ_CORE_SERVICES_GRAPHQL_URL","NZ_CORE_SERVICES_REST_URL","env","environment","AWS","region","cognito","userPoolId","userPoolWebClientId","apiUrls","restV1","restV2","graphql","publicUrls","platformSite","nizzaCdn","bundleSite"],"mappings":"AAAA,MAAM,EACJA,cAAa,EACbC,uBAAsB,EACtBC,6BAA4B,EAC5BC,0BAAyB,EAC1B,GAAG,YAAYC,GAAG;AAEnB,OAAO,MAAMC,cAAc;IACzBC,KAAK;QACHC,QAAQP;QACRQ,SAAS;YACPC,YAAY;YACZC,qBAAqB;QACvB;IACF;IAEA,iBAAiB;IACjBC,SAAS;QACPC,QACEX,0BACA;QACFY,QACEV,6BAA6B;QAC/BW,SACEZ,gCACA;IACJ;IAEAa,YAAY;QACV,kBAAkB;QAClBC,cAAc;QAEd,YAAY;QACZC,UAAU;QAEV,UAAU;QACVC,YAAY;IACd;AACF,EAAE;AAEF,eAAeb,YAAY"}
package/src/index.d.js DELETED
@@ -1,8 +0,0 @@
1
- export * from './lib/constants';
2
- export * from './lib/domain';
3
- export * from './lib/providers';
4
- export * from './lib/stores';
5
- export * from './lib/types';
6
- export * from './lib/utils';
7
-
8
- //# sourceMappingURL=index.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/index.d.ts"],"sourcesContent":["export * from './lib/constants';\nexport * from './lib/domain';\nexport * from './lib/providers';\nexport * from './lib/stores';\nexport * from './lib/types';\nexport * from './lib/utils';\n"],"names":[],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,eAAe;AAC7B,cAAc,kBAAkB;AAChC,cAAc,eAAe;AAC7B,cAAc,cAAc;AAC5B,cAAc,cAAc"}
package/src/index.js DELETED
@@ -1,9 +0,0 @@
1
- export * from './environments';
2
- export * from './lib/constants';
3
- export * from './lib/domain';
4
- export * from './lib/providers';
5
- export * from './lib/stores';
6
- export * from './lib/types';
7
- export * from './lib/utils';
8
-
9
- //# sourceMappingURL=index.js.map
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './environments';\nexport * from './lib/constants';\nexport * from './lib/domain';\nexport * from './lib/providers';\nexport * from './lib/stores';\nexport * from './lib/types';\nexport * from './lib/utils';\n"],"names":[],"mappings":"AAAA,cAAc,iBAAiB;AAC/B,cAAc,kBAAkB;AAChC,cAAc,eAAe;AAC7B,cAAc,kBAAkB;AAChC,cAAc,eAAe;AAC7B,cAAc,cAAc;AAC5B,cAAc,cAAc"}
@@ -1,3 +0,0 @@
1
- export * from './products';
2
-
3
- //# sourceMappingURL=index.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/constants/index.d.ts"],"sourcesContent":["export * from './products';\n"],"names":[],"mappings":"AAAA,cAAc,aAAa"}
@@ -1,3 +0,0 @@
1
- export * from './products';
2
-
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/constants/index.ts"],"sourcesContent":["export * from './products';\n"],"names":[],"mappings":"AAAA,cAAc,aAAa"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=products.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/constants/products.d.ts"],"sourcesContent":["export declare enum NizzaVariationTypes {\n COMBO = \"Combo\"\n}\n"],"names":[],"mappings":"AAAA,WAEC"}
@@ -1,6 +0,0 @@
1
- export var NizzaVariationTypes;
2
- (function(NizzaVariationTypes) {
3
- NizzaVariationTypes["COMBO"] = 'Combo';
4
- })(NizzaVariationTypes || (NizzaVariationTypes = {}));
5
-
6
- //# sourceMappingURL=products.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/constants/products.ts"],"sourcesContent":["export enum NizzaVariationTypes {\n COMBO = 'Combo',\n}\n"],"names":["NizzaVariationTypes","COMBO"],"mappings":"WAAO;UAAKA,mBAAmB;IAAnBA,oBACVC,WAAQ;GADED,wBAAAA"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=AggregateRoot.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/domain/AggregateRoot.d.ts"],"sourcesContent":["export interface IAggregateRoot {\n toPrimitives: () => Record<string, any>;\n}\nexport declare class AggregateRoot<Aggregate, Props> {\n private aggregate;\n private _numSetPropsApplied;\n constructor(aggregate: Aggregate);\n setProps(props: Partial<Props>): void;\n get isFirstSetProps(): boolean;\n}\nexport declare function createAggregateRoot<Props, Aggregate>(aggregate: Aggregate): AggregateRoot<Aggregate, Props>;\n"],"names":[],"mappings":"AAAA,WAUqH"}
@@ -1,22 +0,0 @@
1
- export class AggregateRoot {
2
- setProps(props) {
3
- for (const [key, value] of Object.entries(props)){
4
- if (key in this.aggregate) {
5
- this.aggregate[key] = value;
6
- }
7
- }
8
- this._numSetPropsApplied++;
9
- }
10
- get isFirstSetProps() {
11
- return this._numSetPropsApplied === 1;
12
- }
13
- constructor(aggregate){
14
- this._numSetPropsApplied = 0;
15
- this.aggregate = aggregate;
16
- }
17
- }
18
- export function createAggregateRoot(aggregate) {
19
- return new AggregateRoot(aggregate);
20
- }
21
-
22
- //# sourceMappingURL=AggregateRoot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/domain/AggregateRoot.ts"],"sourcesContent":["export interface IAggregateRoot {\n toPrimitives: () => Record<string, any>;\n}\n\nexport class AggregateRoot<Aggregate, Props> {\n private aggregate: Aggregate;\n private _numSetPropsApplied = 0;\n\n constructor(aggregate: Aggregate) {\n this.aggregate = aggregate;\n }\n\n setProps(props: Partial<Props>) {\n for (const [key, value] of Object.entries(props)) {\n if (key in (this as any).aggregate) {\n (this.aggregate as any)[key] = value;\n }\n }\n\n this._numSetPropsApplied++;\n }\n\n get isFirstSetProps() {\n return this._numSetPropsApplied === 1;\n }\n}\n\nexport function createAggregateRoot<Props, Aggregate>(aggregate: Aggregate) {\n return new AggregateRoot<Aggregate, Props>(aggregate);\n}\n"],"names":["AggregateRoot","setProps","props","key","value","Object","entries","aggregate","_numSetPropsApplied","isFirstSetProps","constructor","createAggregateRoot"],"mappings":"AAIA,OAAO,MAAMA;IAQXC,SAASC,KAAqB,EAAE;QAC9B,KAAK,MAAM,CAACC,KAAKC,MAAM,IAAIC,OAAOC,OAAO,CAACJ,OAAQ;YAChD,IAAIC,OAAO,AAAC,IAAI,CAASI,SAAS,EAAE;gBACjC,IAAI,CAACA,SAAS,AAAQ,CAACJ,IAAI,GAAGC;YACjC,CAAC;QACH;QAEA,IAAI,CAACI,mBAAmB;IAC1B;IAEA,IAAIC,kBAAkB;QACpB,OAAO,IAAI,CAACD,mBAAmB,KAAK;IACtC;IAhBAE,YAAYH,SAAoB,CAAE;aAF1BC,sBAAsB;QAG5B,IAAI,CAACD,SAAS,GAAGA;IACnB;AAeF,CAAC;AAED,OAAO,SAASI,oBAAsCJ,SAAoB,EAAE;IAC1E,OAAO,IAAIP,cAAgCO;AAC7C,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=BaseMobxStore.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/domain/BaseMobxStore.d.ts"],"sourcesContent":["export declare abstract class BaseMobxStore {\n}\n"],"names":[],"mappings":"AAAA,WACC"}
@@ -1,4 +0,0 @@
1
- export class BaseMobxStore {
2
- }
3
-
4
- //# sourceMappingURL=BaseMobxStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/domain/BaseMobxStore.ts"],"sourcesContent":["export abstract class BaseMobxStore {}\n"],"names":["BaseMobxStore"],"mappings":"AAAA,OAAO,MAAeA;AAAe,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=ValueObject.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/domain/ValueObject.d.ts"],"sourcesContent":["export declare abstract class ValueObject<T> {\n protected _value: T;\n constructor(value?: T);\n get value(): T;\n}\n"],"names":[],"mappings":"AAAA,WAIC"}
@@ -1,12 +0,0 @@
1
- export class ValueObject {
2
- get value() {
3
- return this._value;
4
- }
5
- constructor(value){
6
- if (value !== undefined) {
7
- this._value = value;
8
- }
9
- }
10
- }
11
-
12
- //# sourceMappingURL=ValueObject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/domain/ValueObject.ts"],"sourcesContent":["export abstract class ValueObject<T> {\n protected _value!: T;\n\n constructor(value?: T) {\n if (value !== undefined) {\n this._value = value;\n }\n }\n\n get value() {\n return this._value;\n }\n}\n"],"names":["ValueObject","value","_value","constructor","undefined"],"mappings":"AAAA,OAAO,MAAeA;IASpB,IAAIC,QAAQ;QACV,OAAO,IAAI,CAACC,MAAM;IACpB;IARAC,YAAYF,KAAS,CAAE;QACrB,IAAIA,UAAUG,WAAW;YACvB,IAAI,CAACF,MAAM,GAAGD;QAChB,CAAC;IACH;AAKF,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=DomainError.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/lib/domain/errors/DomainError.d.ts"],"sourcesContent":["interface DomainErrorDTO {\n name: string;\n message: string;\n value?: any;\n}\nexport declare class DomainError extends Error {\n value?: any;\n constructor(name: string, message: string, value?: any);\n toDTO(): DomainErrorDTO;\n}\nexport {};\n"],"names":[],"mappings":"AAAA,WAUU"}
@@ -1,18 +0,0 @@
1
- import { _ as _extends } from "@swc/helpers/_/_extends";
2
- export class DomainError extends Error {
3
- toDTO() {
4
- return _extends({
5
- name: this.name,
6
- message: this.message
7
- }, this.value && {
8
- value: this.value
9
- });
10
- }
11
- constructor(name, message, value){
12
- super(message);
13
- this.value = value;
14
- this.name = name;
15
- }
16
- }
17
-
18
- //# sourceMappingURL=DomainError.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/lib/domain/errors/DomainError.ts"],"sourcesContent":["interface DomainErrorDTO {\n name: string;\n message: string;\n value?: any;\n}\n\nexport class DomainError extends Error {\n constructor(name: string, message: string, public value?: any) {\n super(message);\n this.name = name;\n }\n\n toDTO(): DomainErrorDTO {\n return {\n name: this.name,\n message: this.message,\n ...(this.value && { value: this.value }),\n };\n }\n}\n"],"names":["DomainError","Error","toDTO","name","message","value","constructor"],"mappings":";AAMA,OAAO,MAAMA,oBAAoBC;IAM/BC,QAAwB;QACtB,OAAO;YACLC,MAAM,IAAI,CAACA,IAAI;YACfC,SAAS,IAAI,CAACA,OAAO;WACjB,IAAI,CAACC,KAAK,IAAI;YAAEA,OAAO,IAAI,CAACA,KAAK;QAAC;IAE1C;IAXAC,YAAYH,IAAY,EAAEC,OAAe,EAASC,MAAa;QAC7D,KAAK,CAACD;qBAD0CC;QAEhD,IAAI,CAACF,IAAI,GAAGA;IACd;AASF,CAAC"}
@@ -1,3 +0,0 @@
1
- import { DomainError } from './DomainError';
2
-
3
- //# sourceMappingURL=api.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/lib/domain/errors/api.d.ts"],"sourcesContent":["import { DomainError } from './DomainError';\nexport declare class ResourceNotFoundError extends DomainError {\n constructor(id: string);\n}\n"],"names":["DomainError"],"mappings":"AAAA,SAASA,WAAW,QAAQ,gBAAgB"}
@@ -1,8 +0,0 @@
1
- import { DomainError } from './DomainError';
2
- export class ResourceNotFoundError extends DomainError {
3
- constructor(id){
4
- super('RESOURCE_NOT_FOUND_ERROR', `Resource with id '${id}' not found.`, id);
5
- }
6
- }
7
-
8
- //# sourceMappingURL=api.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/lib/domain/errors/api.ts"],"sourcesContent":["import { DomainError } from './DomainError';\n\nexport class ResourceNotFoundError extends DomainError {\n constructor(id: string) {\n super(\n 'RESOURCE_NOT_FOUND_ERROR',\n `Resource with id '${id}' not found.`,\n id,\n );\n }\n}\n"],"names":["DomainError","ResourceNotFoundError","constructor","id"],"mappings":"AAAA,SAASA,WAAW,QAAQ,gBAAgB;AAE5C,OAAO,MAAMC,8BAA8BD;IACzCE,YAAYC,EAAU,CAAE;QACtB,KAAK,CACH,4BACA,CAAC,kBAAkB,EAAEA,GAAG,YAAY,CAAC,EACrCA;IAEJ;AACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import { DomainError } from './DomainError';
2
-
3
- //# sourceMappingURL=app.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/lib/domain/errors/app.d.ts"],"sourcesContent":["import { DomainError } from './DomainError';\nexport declare class UnexpectedError extends DomainError {\n constructor(error: Error | unknown);\n}\nexport declare class AccountInvalidError extends DomainError {\n constructor();\n}\n"],"names":["DomainError"],"mappings":"AAAA,SAASA,WAAW,QAAQ,gBAAgB"}
@@ -1,14 +0,0 @@
1
- import { DomainError } from './DomainError';
2
- export class UnexpectedError extends DomainError {
3
- constructor(error){
4
- var _error_message;
5
- super('APP_UNEXPECTED_ERROR', (_error_message = error.message) != null ? _error_message : `An unexpected error occurred.`, error);
6
- }
7
- }
8
- export class AccountInvalidError extends DomainError {
9
- constructor(){
10
- super('APP_ACCOUNT_INVALID_ERROR', `Account not defined`);
11
- }
12
- }
13
-
14
- //# sourceMappingURL=app.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/lib/domain/errors/app.ts"],"sourcesContent":["import { DomainError } from './DomainError';\n\nexport class UnexpectedError extends DomainError {\n constructor(error: Error | unknown) {\n super(\n 'APP_UNEXPECTED_ERROR',\n (error as Error).message ?? `An unexpected error occurred.`,\n error,\n );\n }\n}\n\nexport class AccountInvalidError extends DomainError {\n constructor() {\n super('APP_ACCOUNT_INVALID_ERROR', `Account not defined`);\n }\n}\n"],"names":["DomainError","UnexpectedError","constructor","error","message","AccountInvalidError"],"mappings":"AAAA,SAASA,WAAW,QAAQ,gBAAgB;AAE5C,OAAO,MAAMC,wBAAwBD;IACnCE,YAAYC,KAAsB,CAAE;YAGhC;QAFF,KAAK,CACH,wBACA,CAAA,iBAAA,AAACA,MAAgBC,OAAO,YAAxB,iBAA4B,CAAC,6BAA6B,CAAC,EAC3DD;IAEJ;AACF,CAAC;AAED,OAAO,MAAME,4BAA4BL;IACvCE,aAAc;QACZ,KAAK,CAAC,6BAA6B,CAAC,mBAAmB,CAAC;IAC1D;AACF,CAAC"}
@@ -1,5 +0,0 @@
1
- export * from './api';
2
- export * from './app';
3
- export * from './DomainError';
4
-
5
- //# sourceMappingURL=index.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/lib/domain/errors/index.d.ts"],"sourcesContent":["export * from './api';\nexport * from './app';\nexport * from './DomainError';\n"],"names":[],"mappings":"AAAA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,gBAAgB"}
@@ -1,5 +0,0 @@
1
- export * from './api';
2
- export * from './app';
3
- export * from './DomainError';
4
-
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/lib/domain/errors/index.ts"],"sourcesContent":["export * from './api';\nexport * from './app';\nexport * from './DomainError';\n"],"names":[],"mappings":"AAAA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,gBAAgB"}
@@ -1,6 +0,0 @@
1
- export * from './AggregateRoot';
2
- export * from './BaseMobxStore';
3
- export * from './errors';
4
- export * from './ValueObject';
5
-
6
- //# sourceMappingURL=index.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/domain/index.d.ts"],"sourcesContent":["export * from './AggregateRoot';\nexport * from './BaseMobxStore';\nexport * from './errors';\nexport * from './ValueObject';\n"],"names":[],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,kBAAkB;AAChC,cAAc,WAAW;AACzB,cAAc,gBAAgB"}
@@ -1,6 +0,0 @@
1
- export * from './AggregateRoot';
2
- export * from './BaseMobxStore';
3
- export * from './errors';
4
- export * from './ValueObject';
5
-
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/domain/index.ts"],"sourcesContent":["export * from './AggregateRoot';\nexport * from './BaseMobxStore';\nexport * from './errors';\nexport * from './ValueObject';\n"],"names":[],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,kBAAkB;AAChC,cAAc,WAAW;AACzB,cAAc,gBAAgB"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=StoreProvider.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/providers/StoreProvider.d.ts"],"sourcesContent":["import { FC } from 'react';\nimport { BaseStore, StoreClass, StoreFactory } from '../types';\ninterface Props {\n instances?: BaseStore[];\n stores: (StoreClass | StoreFactory)[];\n children?: React.ReactNode;\n}\nexport declare const StoreProvider: FC<Props>;\nexport declare function useStore<T>(identifier: StoreClass<T>): T;\nexport declare function getStore<T>(identifier: StoreClass<T>): T;\nexport {};\n"],"names":[],"mappings":"AAAA,WAUU"}
@@ -1,36 +0,0 @@
1
- import { createContext, useContext, useMemo } from 'react';
2
- let globalStores = new Map();
3
- const storeContext = /*#__PURE__*/ createContext(globalStores);
4
- export const StoreProvider = ({ children , stores , instances })=>{
5
- const parentContext = useContext(storeContext);
6
- const context = useMemo(()=>{
7
- const container = new Map();
8
- stores.forEach((store)=>{
9
- let instance;
10
- try {
11
- instance = store();
12
- } catch (err) {
13
- instance = new store();
14
- }
15
- container.set(store, instance);
16
- });
17
- instances == null ? void 0 : instances.forEach((instance_)=>container.set(instance_.constructor, instance_));
18
- return globalStores = new Map([
19
- ...parentContext,
20
- ...container
21
- ]);
22
- // eslint-disable-next-line react-hooks/exhaustive-deps
23
- }, []);
24
- return /*#__PURE__*/ React.createElement(storeContext.Provider, {
25
- value: context
26
- }, children);
27
- };
28
- export function useStore(identifier) {
29
- const context = useContext(storeContext);
30
- return context.get(identifier);
31
- }
32
- export function getStore(identifier) {
33
- return globalStores.get(identifier);
34
- }
35
-
36
- //# sourceMappingURL=StoreProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/providers/StoreProvider.tsx"],"sourcesContent":["import { createContext, FC, useContext, useMemo } from 'react';\nimport { BaseStore, StoreClass, StoreFactory } from '../types';\n\ninterface Props {\n instances?: BaseStore[];\n stores: (StoreClass | StoreFactory)[];\n children?: React.ReactNode;\n}\n\nlet globalStores = new Map<any, any>();\nconst storeContext = createContext<typeof globalStores>(globalStores);\n\nexport const StoreProvider: FC<Props> = ({ children, stores, instances }) => {\n const parentContext = useContext(storeContext);\n\n const context = useMemo(() => {\n const container = new Map();\n stores.forEach(store => {\n let instance;\n\n try {\n instance = (store as StoreFactory)();\n } catch (err) {\n instance = new (store as StoreClass)();\n }\n container.set(store, instance);\n });\n\n instances?.forEach(instance_ =>\n container.set(instance_.constructor, instance_),\n );\n\n return (globalStores = new Map([...parentContext, ...container]));\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <storeContext.Provider value={context}>{children}</storeContext.Provider>\n );\n};\n\nexport function useStore<T>(identifier: StoreClass<T>): T {\n const context = useContext(storeContext);\n return context.get(identifier);\n}\n\nexport function getStore<T>(identifier: StoreClass<T>): T {\n return globalStores.get(identifier);\n}\n"],"names":["createContext","useContext","useMemo","globalStores","Map","storeContext","StoreProvider","children","stores","instances","parentContext","context","container","forEach","store","instance","err","set","instance_","constructor","Provider","value","useStore","identifier","get","getStore"],"mappings":"AAAA,SAASA,aAAa,EAAMC,UAAU,EAAEC,OAAO,QAAQ,QAAQ;AAS/D,IAAIC,eAAe,IAAIC;AACvB,MAAMC,6BAAeL,cAAmCG;AAExD,OAAO,MAAMG,gBAA2B,CAAC,EAAEC,SAAQ,EAAEC,OAAM,EAAEC,UAAS,EAAE,GAAK;IAC3E,MAAMC,gBAAgBT,WAAWI;IAEjC,MAAMM,UAAUT,QAAQ,IAAM;QAC5B,MAAMU,YAAY,IAAIR;QACtBI,OAAOK,OAAO,CAACC,CAAAA,QAAS;YACtB,IAAIC;YAEJ,IAAI;gBACFA,WAAW,AAACD;YACd,EAAE,OAAOE,KAAK;gBACZD,WAAW,IAAKD;YAClB;YACAF,UAAUK,GAAG,CAACH,OAAOC;QACvB;QAEAN,oBAAAA,KAAAA,IAAAA,UAAWI,OAAO,CAACK,CAAAA,YACjBN,UAAUK,GAAG,CAACC,UAAUC,WAAW,EAAED;QAGvC,OAAQf,eAAe,IAAIC,IAAI;eAAIM;eAAkBE;SAAU;IAC/D,uDAAuD;IACzD,GAAG,EAAE;IAEL,qBACE,oBAACP,aAAae,QAAQ;QAACC,OAAOV;OAAUJ;AAE5C,EAAE;AAEF,OAAO,SAASe,SAAYC,UAAyB,EAAK;IACxD,MAAMZ,UAAUV,WAAWI;IAC3B,OAAOM,QAAQa,GAAG,CAACD;AACrB,CAAC;AAED,OAAO,SAASE,SAAYF,UAAyB,EAAK;IACxD,OAAOpB,aAAaqB,GAAG,CAACD;AAC1B,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from './StoreProvider';
2
-
3
- //# sourceMappingURL=index.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/providers/index.d.ts"],"sourcesContent":["export * from './StoreProvider';\n"],"names":[],"mappings":"AAAA,cAAc,kBAAkB"}
@@ -1,3 +0,0 @@
1
- export * from './StoreProvider';
2
-
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/providers/index.ts"],"sourcesContent":["export * from './StoreProvider';\n"],"names":[],"mappings":"AAAA,cAAc,kBAAkB"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=NizzaStore.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/stores/NizzaStore.d.ts"],"sourcesContent":["import { NizzaConfiguration, NizzaGlobalObjet } from '../types';\nexport declare class NizzaStore implements NizzaGlobalObjet {\n private _config;\n constructor();\n configure(config: NizzaConfiguration): void;\n get config(): NizzaConfiguration;\n}\nexport declare const nizza: NizzaStore;\n"],"names":[],"mappings":"AAAA,WAOuC"}
@@ -1,18 +0,0 @@
1
- import { makeAutoObservable } from 'mobx';
2
- export class NizzaStore {
3
- configure(config) {
4
- this._config = config;
5
- }
6
- get config() {
7
- return this._config;
8
- }
9
- constructor(){
10
- makeAutoObservable(this, {}, {
11
- name: 'NizzaStore',
12
- autoBind: true
13
- });
14
- }
15
- }
16
- export const nizza = new NizzaStore();
17
-
18
- //# sourceMappingURL=NizzaStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/stores/NizzaStore.ts"],"sourcesContent":["import { NizzaConfiguration, NizzaGlobalObjet } from '../types';\nimport { makeAutoObservable } from 'mobx';\n\nexport class NizzaStore implements NizzaGlobalObjet {\n private _config!: NizzaConfiguration;\n\n constructor() {\n makeAutoObservable(this, {}, { name: 'NizzaStore', autoBind: true });\n }\n\n configure(config: NizzaConfiguration) {\n this._config = config;\n }\n\n get config() {\n return this._config;\n }\n}\n\nexport const nizza = new NizzaStore();\n"],"names":["makeAutoObservable","NizzaStore","configure","config","_config","constructor","name","autoBind","nizza"],"mappings":"AACA,SAASA,kBAAkB,QAAQ,OAAO;AAE1C,OAAO,MAAMC;IAOXC,UAAUC,MAA0B,EAAE;QACpC,IAAI,CAACC,OAAO,GAAGD;IACjB;IAEA,IAAIA,SAAS;QACX,OAAO,IAAI,CAACC,OAAO;IACrB;IAVAC,aAAc;QACZL,mBAAmB,IAAI,EAAE,CAAC,GAAG;YAAEM,MAAM;YAAcC,UAAU,IAAI;QAAC;IACpE;AASF,CAAC;AAED,OAAO,MAAMC,QAAQ,IAAIP,aAAa"}
@@ -1,3 +0,0 @@
1
- export * from './NizzaStore';
2
-
3
- //# sourceMappingURL=index.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/stores/index.d.ts"],"sourcesContent":["export * from './NizzaStore';\n"],"names":[],"mappings":"AAAA,cAAc,eAAe"}
@@ -1,3 +0,0 @@
1
- export * from './NizzaStore';
2
-
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/stores/index.ts"],"sourcesContent":["export * from './NizzaStore';\n"],"names":[],"mappings":"AAAA,cAAc,eAAe"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=api-graphql-types.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/types/api-graphql-types.d.ts"],"sourcesContent":["import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\nexport type Maybe<T> = T | null;\nexport type InputMaybe<T> = Maybe<T>;\nexport type Exact<T extends {\n [key: string]: unknown;\n}> = {\n [K in keyof T]: T[K];\n};\nexport type MakeOptional<T, K extends keyof T> = Omit<T, K> & {\n [SubKey in K]?: Maybe<T[SubKey]>;\n};\nexport type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {\n [SubKey in K]: Maybe<T[SubKey]>;\n};\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n ID: string;\n String: string;\n Boolean: boolean;\n Int: number;\n Float: number;\n DateTime: any;\n JSON: any;\n};\nexport type Collection = {\n __typename?: 'Collection';\n account?: Maybe<Scalars['String']>;\n createdat?: Maybe<Scalars['DateTime']>;\n description?: Maybe<Scalars['String']>;\n duration?: Maybe<Scalars['String']>;\n id: Scalars['String'];\n isArray?: Maybe<Scalars['Boolean']>;\n method?: Maybe<Scalars['String']>;\n name: Scalars['String'];\n path?: Maybe<Scalars['String']>;\n products?: Maybe<Array<Product>>;\n status?: Maybe<Scalars['String']>;\n};\nexport type CollectionResult = CollectionSuccess | ErrorGeneral;\nexport type CollectionResultArray = CollectionSuccessArray | ErrorGeneral;\nexport type CollectionSuccess = {\n __typename?: 'CollectionSuccess';\n data?: Maybe<Collection>;\n duration?: Maybe<Scalars['String']>;\n isArray?: Maybe<Scalars['Boolean']>;\n method?: Maybe<Scalars['String']>;\n path?: Maybe<Scalars['String']>;\n};\nexport type CollectionSuccessArray = {\n __typename?: 'CollectionSuccessArray';\n data?: Maybe<Array<Collection>>;\n duration?: Maybe<Scalars['String']>;\n isArray?: Maybe<Scalars['Boolean']>;\n method?: Maybe<Scalars['String']>;\n path?: Maybe<Scalars['String']>;\n};\nexport type CreateCollectionInput = {\n account: Scalars['String'];\n description?: InputMaybe<Scalars['String']>;\n name: Scalars['String'];\n status?: InputMaybe<Status>;\n};\nexport type CustomPlayer = {\n __typename?: 'CustomPlayer';\n account: Scalars['String'];\n component: Scalars['String'];\n data: Scalars['JSON'];\n duration?: Maybe<Scalars['String']>;\n id: Scalars['String'];\n isArray?: Maybe<Scalars['Boolean']>;\n method?: Maybe<Scalars['String']>;\n path?: Maybe<Scalars['String']>;\n section: Scalars['String'];\n};\nexport type CustomPlayerInput = {\n account: Scalars['String'];\n data: Scalars['JSON'];\n id: Scalars['String'];\n section: Scalars['String'];\n};\nexport type CustomPlayerInputAccount = {\n account: Scalars['String'];\n};\nexport type CustomPlayerResult = CustomPlayerSuccess | ErrorGeneral;\nexport type CustomPlayerResultArray = CustomPlayerSuccessArray | ErrorGeneral;\nexport type CustomPlayerSuccess = {\n __typename?: 'CustomPlayerSuccess';\n data?: Maybe<CustomPlayer>;\n duration?: Maybe<Scalars['String']>;\n isArray?: Maybe<Scalars['Boolean']>;\n method?: Maybe<Scalars['String']>;\n path?: Maybe<Scalars['String']>;\n};\nexport type CustomPlayerSuccessArray = {\n __typename?: 'CustomPlayerSuccessArray';\n data?: Maybe<Array<CustomPlayer>>;\n duration?: Maybe<Scalars['String']>;\n isArray?: Maybe<Scalars['Boolean']>;\n method?: Maybe<Scalars['String']>;\n path?: Maybe<Scalars['String']>;\n};\nexport type Error = {\n message: Scalars['String'];\n statusCode: Scalars['String'];\n timestamp: Scalars['String'];\n};\nexport type ErrorGeneral = Error & {\n __typename?: 'ErrorGeneral';\n message: Scalars['String'];\n statusCode: Scalars['String'];\n timestamp: Scalars['String'];\n};\nexport type ManageCollectionProductInInput = {\n account: Scalars['String'];\n id: Scalars['String'];\n method: Methods;\n productId: Scalars['String'];\n};\nexport declare enum Methods {\n Add = \"add\",\n Remove = \"remove\"\n}\nexport type Mutation = {\n __typename?: 'Mutation';\n createCollection: CollectionResult;\n deleteAllCustomPlayer: CustomPlayerResult;\n deleteCollection: CollectionResult;\n manageCollectionProduct: CollectionResult;\n updateCollection: CollectionResult;\n updateCustomPlayer: CustomPlayerResult;\n};\nexport type MutationCreateCollectionArgs = {\n data: CreateCollectionInput;\n};\nexport type MutationDeleteAllCustomPlayerArgs = {\n data: CustomPlayerInputAccount;\n};\nexport type MutationDeleteCollectionArgs = {\n data: QueryInput;\n};\nexport type MutationManageCollectionProductArgs = {\n data: ManageCollectionProductInInput;\n};\nexport type MutationUpdateCollectionArgs = {\n data: UpdateCollectionInput;\n};\nexport type MutationUpdateCustomPlayerArgs = {\n data: CustomPlayerInput;\n};\nexport type Product = {\n __typename?: 'Product';\n account: Scalars['String'];\n createdat?: Maybe<Scalars['String']>;\n id: Scalars['String'];\n link?: Maybe<Scalars['String']>;\n pictures?: Maybe<Array<Scalars['String']>>;\n price: Scalars['Float'];\n salesprice?: Maybe<Scalars['Float']>;\n status?: Maybe<Status>;\n title: Scalars['String'];\n};\nexport type Query = {\n __typename?: 'Query';\n findCollection: CollectionResult;\n getAllCollection: CollectionResultArray;\n getAllCustomPlayer: CustomPlayerResultArray;\n searchCollection: CollectionResultArray;\n};\nexport type QueryFindCollectionArgs = {\n data: QueryInput;\n};\nexport type QueryGetAllCollectionArgs = {\n data: QueryInput;\n};\nexport type QueryGetAllCustomPlayerArgs = {\n data: QueryInput;\n};\nexport type QuerySearchCollectionArgs = {\n data: QueryInput;\n};\nexport type QueryInput = {\n account: Scalars['String'];\n id?: InputMaybe<Scalars['String']>;\n limit?: InputMaybe<Scalars['Float']>;\n page?: InputMaybe<Scalars['Float']>;\n search?: InputMaybe<Scalars['String']>;\n};\nexport declare enum Status {\n Active = \"active\",\n Inactive = \"inactive\"\n}\nexport type UpdateCollectionInput = {\n account: Scalars['String'];\n description?: InputMaybe<Scalars['String']>;\n id: Scalars['String'];\n name?: InputMaybe<Scalars['String']>;\n status?: InputMaybe<Status>;\n};\nexport type DeleteAllCustomizationMutationVariables = Exact<{\n data: CustomPlayerInputAccount;\n}>;\nexport type DeleteAllCustomizationMutation = {\n __typename?: 'Mutation';\n deleteAllCustomPlayer: {\n __typename: 'CustomPlayerSuccess';\n } | {\n __typename: 'ErrorGeneral';\n message: string;\n statusCode: string;\n timestamp: string;\n };\n};\nexport type GetAllCustomizationQueryVariables = Exact<{\n data: QueryInput;\n}>;\nexport type GetAllCustomizationQuery = {\n __typename?: 'Query';\n getAllCustomPlayer: {\n __typename: 'CustomPlayerSuccessArray';\n data?: Array<{\n __typename?: 'CustomPlayer';\n account: string;\n data: any;\n section: string;\n id: string;\n }> | null;\n } | {\n __typename: 'ErrorGeneral';\n message: string;\n statusCode: string;\n timestamp: string;\n };\n};\nexport type UpdateCustomizationMutationVariables = Exact<{\n data: CustomPlayerInput;\n}>;\nexport type UpdateCustomizationMutation = {\n __typename?: 'Mutation';\n updateCustomPlayer: {\n __typename: 'CustomPlayerSuccess';\n } | {\n __typename: 'ErrorGeneral';\n message: string;\n statusCode: string;\n timestamp: string;\n };\n};\nexport type AddCollectionMutationVariables = Exact<{\n data: CreateCollectionInput;\n}>;\nexport type AddCollectionMutation = {\n __typename?: 'Mutation';\n createCollection: {\n __typename: 'CollectionSuccess';\n data?: {\n __typename?: 'Collection';\n id: string;\n } | null;\n } | {\n __typename: 'ErrorGeneral';\n message: string;\n statusCode: string;\n timestamp: string;\n };\n};\nexport type DeleteCollectionMutationVariables = Exact<{\n data: QueryInput;\n}>;\nexport type DeleteCollectionMutation = {\n __typename?: 'Mutation';\n deleteCollection: {\n __typename: 'CollectionSuccess';\n } | {\n __typename: 'ErrorGeneral';\n message: string;\n statusCode: string;\n timestamp: string;\n };\n};\nexport type FindCollectionQueryVariables = Exact<{\n data: QueryInput;\n}>;\nexport type FindCollectionQuery = {\n __typename?: 'Query';\n findCollection: {\n __typename: 'CollectionSuccess';\n data?: {\n __typename?: 'Collection';\n id: string;\n account?: string | null;\n name: string;\n description?: string | null;\n status?: string | null;\n createdat?: any | null;\n products?: Array<{\n __typename?: 'Product';\n id: string;\n account: string;\n title: string;\n link?: string | null;\n pictures?: Array<string> | null;\n price: number;\n salesprice?: number | null;\n status?: Status | null;\n createdat?: string | null;\n }> | null;\n } | null;\n } | {\n __typename: 'ErrorGeneral';\n message: string;\n statusCode: string;\n timestamp: string;\n };\n};\nexport type GetAllCollectionsQueryVariables = Exact<{\n data: QueryInput;\n}>;\nexport type GetAllCollectionsQuery = {\n __typename?: 'Query';\n getAllCollection: {\n __typename: 'CollectionSuccessArray';\n data?: Array<{\n __typename?: 'Collection';\n id: string;\n account?: string | null;\n name: string;\n description?: string | null;\n status?: string | null;\n createdat?: any | null;\n products?: Array<{\n __typename?: 'Product';\n id: string;\n account: string;\n title: string;\n link?: string | null;\n pictures?: Array<string> | null;\n price: number;\n salesprice?: number | null;\n status?: Status | null;\n createdat?: string | null;\n }> | null;\n }> | null;\n } | {\n __typename: 'ErrorGeneral';\n message: string;\n statusCode: string;\n timestamp: string;\n };\n};\nexport type ManageCollectionProductMutationVariables = Exact<{\n data: ManageCollectionProductInInput;\n}>;\nexport type ManageCollectionProductMutation = {\n __typename?: 'Mutation';\n manageCollectionProduct: {\n __typename: 'CollectionSuccess';\n } | {\n __typename: 'ErrorGeneral';\n message: string;\n statusCode: string;\n timestamp: string;\n };\n};\nexport type SearchCollectionsQueryVariables = Exact<{\n data: QueryInput;\n}>;\nexport type SearchCollectionsQuery = {\n __typename?: 'Query';\n searchCollection: {\n __typename: 'CollectionSuccessArray';\n data?: Array<{\n __typename?: 'Collection';\n id: string;\n account?: string | null;\n name: string;\n description?: string | null;\n status?: string | null;\n createdat?: any | null;\n products?: Array<{\n __typename?: 'Product';\n id: string;\n account: string;\n title: string;\n link?: string | null;\n pictures?: Array<string> | null;\n price: number;\n salesprice?: number | null;\n status?: Status | null;\n createdat?: string | null;\n }> | null;\n }> | null;\n } | {\n __typename: 'ErrorGeneral';\n message: string;\n statusCode: string;\n timestamp: string;\n };\n};\nexport type UpdateCollectionMutationVariables = Exact<{\n data: UpdateCollectionInput;\n}>;\nexport type UpdateCollectionMutation = {\n __typename?: 'Mutation';\n updateCollection: {\n __typename: 'CollectionSuccess';\n } | {\n __typename: 'ErrorGeneral';\n message: string;\n statusCode: string;\n timestamp: string;\n };\n};\nexport declare const DeleteAllCustomizationDocument: DocumentNode<DeleteAllCustomizationMutation, Exact<{\n data: CustomPlayerInputAccount;\n}>>;\nexport declare const GetAllCustomizationDocument: DocumentNode<GetAllCustomizationQuery, Exact<{\n data: QueryInput;\n}>>;\nexport declare const UpdateCustomizationDocument: DocumentNode<UpdateCustomizationMutation, Exact<{\n data: CustomPlayerInput;\n}>>;\nexport declare const AddCollectionDocument: DocumentNode<AddCollectionMutation, Exact<{\n data: CreateCollectionInput;\n}>>;\nexport declare const DeleteCollectionDocument: DocumentNode<DeleteCollectionMutation, Exact<{\n data: QueryInput;\n}>>;\nexport declare const FindCollectionDocument: DocumentNode<FindCollectionQuery, Exact<{\n data: QueryInput;\n}>>;\nexport declare const GetAllCollectionsDocument: DocumentNode<GetAllCollectionsQuery, Exact<{\n data: QueryInput;\n}>>;\nexport declare const ManageCollectionProductDocument: DocumentNode<ManageCollectionProductMutation, Exact<{\n data: ManageCollectionProductInInput;\n}>>;\nexport declare const SearchCollectionsDocument: DocumentNode<SearchCollectionsQuery, Exact<{\n data: QueryInput;\n}>>;\nexport declare const UpdateCollectionDocument: DocumentNode<UpdateCollectionMutation, Exact<{\n data: UpdateCollectionInput;\n}>>;\n"],"names":[],"mappings":"AAAA,WAybI"}