@nizza/core 0.3.0-alpha.3 → 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.
- package/README.md +3 -0
- package/dist/index.cjs +2 -0
- package/dist/index.mjs +2798 -0
- package/{src → dist}/lib/stores/NizzaStore.d.ts +1 -0
- package/{src → dist}/lib/types/api-graphql-types.d.ts +57 -57
- package/dist/lib/types/mobx-store.d.ts +3 -0
- package/dist/lib/types/products/product.d.ts +16 -0
- package/{src → dist}/lib/types/utils.d.ts +3 -3
- package/{src → dist}/lib/utils/Result.d.ts +1 -1
- package/{src → dist}/lib/utils/customStorage/utils.d.ts +1 -1
- package/dist/lib/utils/fingerprint.d.ts +1 -0
- package/{src → dist}/lib/utils/helpers.d.ts +1 -1
- package/{src → dist}/lib/utils/lazyLoad.d.ts +1 -1
- package/dist/package.json +21 -0
- package/package.json +11 -11
- package/src/environments/environment.d.js +0 -3
- package/src/environments/environment.d.js.map +0 -1
- package/src/environments/environment.js +0 -28
- package/src/environments/environment.js.map +0 -1
- package/src/environments/environment.prod.d.js +0 -3
- package/src/environments/environment.prod.d.js.map +0 -1
- package/src/environments/environment.prod.d.ts +0 -20
- package/src/environments/environment.prod.js +0 -27
- package/src/environments/environment.prod.js.map +0 -1
- package/src/environments/environment.staging.d.js +0 -3
- package/src/environments/environment.staging.d.js.map +0 -1
- package/src/environments/environment.staging.d.ts +0 -20
- package/src/environments/environment.staging.js +0 -27
- package/src/environments/environment.staging.js.map +0 -1
- package/src/index.d.js +0 -8
- package/src/index.d.js.map +0 -1
- package/src/index.js +0 -8
- package/src/index.js.map +0 -1
- package/src/lib/constants/index.d.js +0 -3
- package/src/lib/constants/index.d.js.map +0 -1
- package/src/lib/constants/index.js +0 -3
- package/src/lib/constants/index.js.map +0 -1
- package/src/lib/constants/products.d.js +0 -3
- package/src/lib/constants/products.d.js.map +0 -1
- package/src/lib/constants/products.js +0 -6
- package/src/lib/constants/products.js.map +0 -1
- package/src/lib/domain/AggregateRoot.d.js +0 -3
- package/src/lib/domain/AggregateRoot.d.js.map +0 -1
- package/src/lib/domain/AggregateRoot.js +0 -33
- package/src/lib/domain/AggregateRoot.js.map +0 -1
- package/src/lib/domain/BaseMobxStore.d.js +0 -3
- package/src/lib/domain/BaseMobxStore.d.js.map +0 -1
- package/src/lib/domain/BaseMobxStore.js +0 -5
- package/src/lib/domain/BaseMobxStore.js.map +0 -1
- package/src/lib/domain/ValueObject.d.js +0 -3
- package/src/lib/domain/ValueObject.d.js.map +0 -1
- package/src/lib/domain/ValueObject.js +0 -20
- package/src/lib/domain/ValueObject.js.map +0 -1
- package/src/lib/domain/errors/DomainError.d.js +0 -3
- package/src/lib/domain/errors/DomainError.d.js.map +0 -1
- package/src/lib/domain/errors/DomainError.js +0 -26
- package/src/lib/domain/errors/DomainError.js.map +0 -1
- package/src/lib/domain/errors/api.d.js +0 -3
- package/src/lib/domain/errors/api.d.js.map +0 -1
- package/src/lib/domain/errors/api.js +0 -12
- package/src/lib/domain/errors/api.js.map +0 -1
- package/src/lib/domain/errors/app.d.js +0 -3
- package/src/lib/domain/errors/app.d.js.map +0 -1
- package/src/lib/domain/errors/app.js +0 -21
- package/src/lib/domain/errors/app.js.map +0 -1
- package/src/lib/domain/errors/index.d.js +0 -5
- package/src/lib/domain/errors/index.d.js.map +0 -1
- package/src/lib/domain/errors/index.js +0 -5
- package/src/lib/domain/errors/index.js.map +0 -1
- package/src/lib/domain/index.d.js +0 -6
- package/src/lib/domain/index.d.js.map +0 -1
- package/src/lib/domain/index.js +0 -6
- package/src/lib/domain/index.js.map +0 -1
- package/src/lib/providers/StoreProvider.d.js +0 -3
- package/src/lib/providers/StoreProvider.d.js.map +0 -1
- package/src/lib/providers/StoreProvider.js +0 -37
- package/src/lib/providers/StoreProvider.js.map +0 -1
- package/src/lib/providers/index.d.js +0 -3
- package/src/lib/providers/index.d.js.map +0 -1
- package/src/lib/providers/index.js +0 -3
- package/src/lib/providers/index.js.map +0 -1
- package/src/lib/stores/NizzaStore.d.js +0 -3
- package/src/lib/stores/NizzaStore.d.js.map +0 -1
- package/src/lib/stores/NizzaStore.js +0 -27
- package/src/lib/stores/NizzaStore.js.map +0 -1
- package/src/lib/stores/index.d.js +0 -3
- package/src/lib/stores/index.d.js.map +0 -1
- package/src/lib/stores/index.js +0 -3
- package/src/lib/stores/index.js.map +0 -1
- package/src/lib/types/api-graphql-types.d.js +0 -3
- package/src/lib/types/api-graphql-types.d.js.map +0 -1
- package/src/lib/types/api-graphql-types.js +0 -2003
- package/src/lib/types/api-graphql-types.js.map +0 -1
- package/src/lib/types/app-module.d.js +0 -3
- package/src/lib/types/app-module.d.js.map +0 -1
- package/src/lib/types/app-module.js +0 -3
- package/src/lib/types/app-module.js.map +0 -1
- package/src/lib/types/index.d.js +0 -9
- package/src/lib/types/index.d.js.map +0 -1
- package/src/lib/types/index.js +0 -9
- package/src/lib/types/index.js.map +0 -1
- package/src/lib/types/mobx-store.d.js +0 -3
- package/src/lib/types/mobx-store.d.js.map +0 -1
- package/src/lib/types/mobx-store.d.ts +0 -3
- package/src/lib/types/mobx-store.js +0 -3
- package/src/lib/types/mobx-store.js.map +0 -1
- package/src/lib/types/nizzaGlobalObject.d.js +0 -3
- package/src/lib/types/nizzaGlobalObject.d.js.map +0 -1
- package/src/lib/types/nizzaGlobalObject.js +0 -3
- package/src/lib/types/nizzaGlobalObject.js.map +0 -1
- package/src/lib/types/products/base.d.js +0 -8
- package/src/lib/types/products/base.d.js.map +0 -1
- package/src/lib/types/products/base.js +0 -8
- package/src/lib/types/products/base.js.map +0 -1
- package/src/lib/types/products/index.d.js +0 -4
- package/src/lib/types/products/index.d.js.map +0 -1
- package/src/lib/types/products/index.js +0 -4
- package/src/lib/types/products/index.js.map +0 -1
- package/src/lib/types/products/product.d.js +0 -3
- package/src/lib/types/products/product.d.js.map +0 -1
- package/src/lib/types/products/product.d.ts +0 -16
- package/src/lib/types/products/product.js +0 -3
- package/src/lib/types/products/product.js.map +0 -1
- package/src/lib/types/utils.d.js +0 -3
- package/src/lib/types/utils.d.js.map +0 -1
- package/src/lib/types/utils.js +0 -5
- package/src/lib/types/utils.js.map +0 -1
- package/src/lib/utils/Result.d.js +0 -3
- package/src/lib/utils/Result.d.js.map +0 -1
- package/src/lib/utils/Result.js +0 -78
- package/src/lib/utils/Result.js.map +0 -1
- package/src/lib/utils/apiCall.d.js +0 -3
- package/src/lib/utils/apiCall.d.js.map +0 -1
- package/src/lib/utils/apiCall.js +0 -57
- package/src/lib/utils/apiCall.js.map +0 -1
- package/src/lib/utils/customStorage/MemoryStorage.d.js +0 -3
- package/src/lib/utils/customStorage/MemoryStorage.d.js.map +0 -1
- package/src/lib/utils/customStorage/MemoryStorage.js +0 -53
- package/src/lib/utils/customStorage/MemoryStorage.js.map +0 -1
- package/src/lib/utils/customStorage/index.d.js +0 -3
- package/src/lib/utils/customStorage/index.d.js.map +0 -1
- package/src/lib/utils/customStorage/index.js +0 -46
- package/src/lib/utils/customStorage/index.js.map +0 -1
- package/src/lib/utils/customStorage/utils.d.js +0 -3
- package/src/lib/utils/customStorage/utils.d.js.map +0 -1
- package/src/lib/utils/customStorage/utils.js +0 -24
- package/src/lib/utils/customStorage/utils.js.map +0 -1
- package/src/lib/utils/fingerprint.d.js +0 -3
- package/src/lib/utils/fingerprint.d.js.map +0 -1
- package/src/lib/utils/fingerprint.d.ts +0 -1
- package/src/lib/utils/fingerprint.js +0 -14
- package/src/lib/utils/fingerprint.js.map +0 -1
- package/src/lib/utils/helpers.d.js +0 -3
- package/src/lib/utils/helpers.d.js.map +0 -1
- package/src/lib/utils/helpers.js +0 -20
- package/src/lib/utils/helpers.js.map +0 -1
- package/src/lib/utils/index.d.js +0 -8
- package/src/lib/utils/index.d.js.map +0 -1
- package/src/lib/utils/index.js +0 -8
- package/src/lib/utils/index.js.map +0 -1
- package/src/lib/utils/lazyLoad.d.js +0 -3
- package/src/lib/utils/lazyLoad.d.js.map +0 -1
- package/src/lib/utils/lazyLoad.js +0 -24
- package/src/lib/utils/lazyLoad.js.map +0 -1
- /package/{src → dist}/environments/environment.d.ts +0 -0
- /package/{src → dist}/index.d.ts +0 -0
- /package/{src → dist}/lib/constants/index.d.ts +0 -0
- /package/{src → dist}/lib/constants/products.d.ts +0 -0
- /package/{src → dist}/lib/domain/AggregateRoot.d.ts +0 -0
- /package/{src → dist}/lib/domain/BaseMobxStore.d.ts +0 -0
- /package/{src → dist}/lib/domain/ValueObject.d.ts +0 -0
- /package/{src → dist}/lib/domain/errors/DomainError.d.ts +0 -0
- /package/{src → dist}/lib/domain/errors/api.d.ts +0 -0
- /package/{src → dist}/lib/domain/errors/app.d.ts +0 -0
- /package/{src → dist}/lib/domain/errors/index.d.ts +0 -0
- /package/{src → dist}/lib/domain/index.d.ts +0 -0
- /package/{src → dist}/lib/providers/StoreProvider.d.ts +0 -0
- /package/{src → dist}/lib/providers/index.d.ts +0 -0
- /package/{src → dist}/lib/stores/index.d.ts +0 -0
- /package/{src → dist}/lib/types/app-module.d.ts +0 -0
- /package/{src → dist}/lib/types/index.d.ts +0 -0
- /package/{src → dist}/lib/types/nizzaGlobalObject.d.ts +0 -0
- /package/{src → dist}/lib/types/products/base.d.ts +0 -0
- /package/{src → dist}/lib/types/products/index.d.ts +0 -0
- /package/{src → dist}/lib/utils/apiCall.d.ts +0 -0
- /package/{src → dist}/lib/utils/customStorage/MemoryStorage.d.ts +0 -0
- /package/{src → dist}/lib/utils/customStorage/index.d.ts +0 -0
- /package/{src → dist}/lib/utils/index.d.ts +0 -0
- /package/{src/typings/libs.d.js → dist/typings/libs.d.ts} +0 -0
package/src/index.d.js
DELETED
package/src/index.d.js.map
DELETED
|
@@ -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
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/constants/index.d.ts"],"sourcesContent":["export * from './products';\n"],"names":[],"mappings":"AAAA,cAAc,aAAa"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/constants/index.ts"],"sourcesContent":["export * from './products';\n"],"names":[],"mappings":"AAAA,cAAc,aAAa"}
|
|
@@ -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 +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 +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,33 +0,0 @@
|
|
|
1
|
-
import { _ as _create_class } from "@swc/helpers/_/_create_class";
|
|
2
|
-
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
3
|
-
export var AggregateRoot = /*#__PURE__*/ function() {
|
|
4
|
-
"use strict";
|
|
5
|
-
function AggregateRoot(aggregate) {
|
|
6
|
-
this._numSetPropsApplied = 0;
|
|
7
|
-
this.aggregate = aggregate;
|
|
8
|
-
}
|
|
9
|
-
var _proto = AggregateRoot.prototype;
|
|
10
|
-
_proto.setProps = function setProps(props) {
|
|
11
|
-
for(var _i = 0, _Object_entries = Object.entries(props); _i < _Object_entries.length; _i++){
|
|
12
|
-
var _Object_entries__i = _sliced_to_array(_Object_entries[_i], 2), key = _Object_entries__i[0], value = _Object_entries__i[1];
|
|
13
|
-
if (key in this.aggregate) {
|
|
14
|
-
this.aggregate[key] = value;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
this._numSetPropsApplied++;
|
|
18
|
-
};
|
|
19
|
-
_create_class(AggregateRoot, [
|
|
20
|
-
{
|
|
21
|
-
key: "isFirstSetProps",
|
|
22
|
-
get: function get() {
|
|
23
|
-
return this._numSetPropsApplied === 1;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
]);
|
|
27
|
-
return AggregateRoot;
|
|
28
|
-
}();
|
|
29
|
-
export function createAggregateRoot(aggregate) {
|
|
30
|
-
return new AggregateRoot(aggregate);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
//# 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","aggregate","_numSetPropsApplied","setProps","props","Object","entries","key","value","isFirstSetProps","createAggregateRoot"],"mappings":";;AAIA,OAAO,IAAA,AAAMA,8BAuBV,AAvBI;;aAAMA,cAICC,SAAoB;aAFxBC,sBAAsB;QAG5B,IAAI,CAACD,SAAS,GAAGA;;iBALRD;IAQXG,OAAAA,QAQC,GARDA,SAAAA,SAASC,KAAqB,EAAE;QAC9B,gBAA2BC,kBAAAA,OAAOC,OAAO,CAACF,aAAfC,6BAAuB;sDAAvBA,yBAAfE,6BAAKC;YACf,IAAID,OAAO,AAAC,IAAI,CAASN,SAAS,EAAE;gBACjC,IAAI,CAACA,SAAS,AAAQ,CAACM,IAAI,GAAGC;YACjC,CAAC;QACH;QAEA,IAAI,CAACN,mBAAmB;IAC1B;kBAhBWF;;YAkBPS,KAAAA;iBAAJ,eAAsB;gBACpB,OAAO,IAAI,CAACP,mBAAmB,KAAK;YACtC;;;WApBWF;IAqBZ;AAED,OAAO,SAASU,oBAAsCT,SAAoB,EAAE;IAC1E,OAAO,IAAID,cAAgCC;AAC7C,CAAC"}
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/domain/BaseMobxStore.ts"],"sourcesContent":["export abstract class BaseMobxStore {}\n"],"names":["BaseMobxStore"],"mappings":"AAAA,OAAO,IAAA,AAAeA,gBAAf,SAAeA;;EAAgB"}
|
|
@@ -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,20 +0,0 @@
|
|
|
1
|
-
import { _ as _create_class } from "@swc/helpers/_/_create_class";
|
|
2
|
-
export var ValueObject = /*#__PURE__*/ function() {
|
|
3
|
-
"use strict";
|
|
4
|
-
function ValueObject(value) {
|
|
5
|
-
if (value !== undefined) {
|
|
6
|
-
this._value = value;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
_create_class(ValueObject, [
|
|
10
|
-
{
|
|
11
|
-
key: "value",
|
|
12
|
-
get: function get() {
|
|
13
|
-
return this._value;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
]);
|
|
17
|
-
return ValueObject;
|
|
18
|
-
}();
|
|
19
|
-
|
|
20
|
-
//# 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","undefined","_value"],"mappings":";AAAA,OAAO,IAAA,AAAeA,4BAAf;;aAAeA,YAGRC,KAAS;QACnB,IAAIA,UAAUC,WAAW;YACvB,IAAI,CAACC,MAAM,GAAGF;QAChB,CAAC;;kBANiBD;;YAShBC,KAAAA;iBAAJ,eAAY;gBACV,OAAO,IAAI,CAACE,MAAM;YACpB;;;WAXoBH;IAYrB"}
|
|
@@ -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,26 +0,0 @@
|
|
|
1
|
-
import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
2
|
-
import { _ as _inherits } from "@swc/helpers/_/_inherits";
|
|
3
|
-
import { _ as _wrap_native_super } from "@swc/helpers/_/_wrap_native_super";
|
|
4
|
-
export var DomainError = /*#__PURE__*/ function(Error1) {
|
|
5
|
-
"use strict";
|
|
6
|
-
_inherits(DomainError, Error1);
|
|
7
|
-
function DomainError(name, message, value) {
|
|
8
|
-
var _this;
|
|
9
|
-
_this = Error1.call(this, message) || this;
|
|
10
|
-
_this.value = value;
|
|
11
|
-
_this.name = name;
|
|
12
|
-
return _this;
|
|
13
|
-
}
|
|
14
|
-
var _proto = DomainError.prototype;
|
|
15
|
-
_proto.toDTO = function toDTO() {
|
|
16
|
-
return _extends({
|
|
17
|
-
name: this.name,
|
|
18
|
-
message: this.message
|
|
19
|
-
}, this.value && {
|
|
20
|
-
value: this.value
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
return DomainError;
|
|
24
|
-
}(_wrap_native_super(Error));
|
|
25
|
-
|
|
26
|
-
//# 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","name","message","value","toDTO","Error"],"mappings":";;;AAMA,OAAO,IAAA,AAAMA,4BANV,AAMI;;cAAMA;aAAAA,YACCC,IAAY,EAAEC,OAAe,EAASC;;kCAC1CD;sBAD0CC;QAEhD,MAAKF,IAAI,GAAGA;;;iBAHHD;IAMXI,OAAAA,KAMC,GANDA,SAAAA,QAAwB;QACtB,OAAO;YACLH,MAAM,IAAI,CAACA,IAAI;YACfC,SAAS,IAAI,CAACA,OAAO;WACjB,IAAI,CAACC,KAAK,IAAI;YAAEA,OAAO,IAAI,CAACA,KAAK;QAAC;IAE1C;WAZWH;qBAAoBK,QAahC"}
|
|
@@ -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,12 +0,0 @@
|
|
|
1
|
-
import { _ as _inherits } from "@swc/helpers/_/_inherits";
|
|
2
|
-
import { DomainError } from './DomainError';
|
|
3
|
-
export var ResourceNotFoundError = /*#__PURE__*/ function(DomainError) {
|
|
4
|
-
"use strict";
|
|
5
|
-
_inherits(ResourceNotFoundError, DomainError);
|
|
6
|
-
function ResourceNotFoundError(id) {
|
|
7
|
-
return DomainError.call(this, 'RESOURCE_NOT_FOUND_ERROR', "Resource with id '" + id + "' not found.", id);
|
|
8
|
-
}
|
|
9
|
-
return ResourceNotFoundError;
|
|
10
|
-
}(DomainError);
|
|
11
|
-
|
|
12
|
-
//# 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","id"],"mappings":";AAAA,SAASA,WAAW,QAAQ,gBAAgB;AAE5C,OAAO,IAAA,AAAMC,sCAFV,AAEI;;cAAMA;aAAAA,sBACCC,EAAU;sCAElB,4BACA,AAAC,uBAAoBA,KAAG,gBACxBA;;WALOD;EAA8BD,aAQ1C"}
|
|
@@ -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,21 +0,0 @@
|
|
|
1
|
-
import { _ as _inherits } from "@swc/helpers/_/_inherits";
|
|
2
|
-
import { DomainError } from './DomainError';
|
|
3
|
-
export var UnexpectedError = /*#__PURE__*/ function(DomainError) {
|
|
4
|
-
"use strict";
|
|
5
|
-
_inherits(UnexpectedError, DomainError);
|
|
6
|
-
function UnexpectedError(error) {
|
|
7
|
-
var _error_message;
|
|
8
|
-
return DomainError.call(this, 'APP_UNEXPECTED_ERROR', (_error_message = error.message) != null ? _error_message : "An unexpected error occurred.", error);
|
|
9
|
-
}
|
|
10
|
-
return UnexpectedError;
|
|
11
|
-
}(DomainError);
|
|
12
|
-
export var AccountInvalidError = /*#__PURE__*/ function(DomainError) {
|
|
13
|
-
"use strict";
|
|
14
|
-
_inherits(AccountInvalidError, DomainError);
|
|
15
|
-
function AccountInvalidError() {
|
|
16
|
-
return DomainError.call(this, 'APP_ACCOUNT_INVALID_ERROR', "Account not defined");
|
|
17
|
-
}
|
|
18
|
-
return AccountInvalidError;
|
|
19
|
-
}(DomainError);
|
|
20
|
-
|
|
21
|
-
//# 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","error","message","AccountInvalidError"],"mappings":";AAAA,SAASA,WAAW,QAAQ,gBAAgB;AAE5C,OAAO,IAAA,AAAMC,gCAUV,AAVI;;cAAMA;aAAAA,gBACCC,KAAsB;YAG9B;sCADA,wBACA,CAAA,iBAAA,AAACA,MAAgBC,OAAO,YAAxB,iBAA6B,+BAA8B,EAC3DD;;WALOD;EAAwBD,aAQpC;AAED,OAAO,IAAA,AAAMI,oCAAN;;cAAMA;aAAAA;sCAEH,6BAA8B;;WAF3BA;EAA4BJ,aAIxC"}
|
|
@@ -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 +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 +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"}
|
package/src/lib/domain/index.js
DELETED
|
@@ -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 +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,37 +0,0 @@
|
|
|
1
|
-
import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
|
|
2
|
-
import { createContext, useContext, useMemo } from 'react';
|
|
3
|
-
var globalStores = new Map();
|
|
4
|
-
var storeContext = /*#__PURE__*/ createContext(globalStores);
|
|
5
|
-
export var StoreProvider = function(param) {
|
|
6
|
-
var children = param.children, stores = param.stores, instances = param.instances;
|
|
7
|
-
var parentContext = useContext(storeContext);
|
|
8
|
-
var context = useMemo(function() {
|
|
9
|
-
var container = new Map();
|
|
10
|
-
stores.forEach(function(store) {
|
|
11
|
-
var instance;
|
|
12
|
-
try {
|
|
13
|
-
instance = store();
|
|
14
|
-
} catch (err) {
|
|
15
|
-
instance = new store();
|
|
16
|
-
}
|
|
17
|
-
container.set(store, instance);
|
|
18
|
-
});
|
|
19
|
-
instances == null ? void 0 : instances.forEach(function(instance_) {
|
|
20
|
-
return container.set(instance_.constructor, instance_);
|
|
21
|
-
});
|
|
22
|
-
return globalStores = new Map(_to_consumable_array(parentContext).concat(_to_consumable_array(container)));
|
|
23
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
24
|
-
}, []);
|
|
25
|
-
return /*#__PURE__*/ React.createElement(storeContext.Provider, {
|
|
26
|
-
value: context
|
|
27
|
-
}, children);
|
|
28
|
-
};
|
|
29
|
-
export function useStore(identifier) {
|
|
30
|
-
var context = useContext(storeContext);
|
|
31
|
-
return context.get(identifier);
|
|
32
|
-
}
|
|
33
|
-
export function getStore(identifier) {
|
|
34
|
-
return globalStores.get(identifier);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
//# 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,IAAMC,6BAAeL,cAAmCG;AAExD,OAAO,IAAMG,gBAA2B,gBAAqC;QAAlCC,iBAAAA,UAAUC,eAAAA,QAAQC,kBAAAA;IAC3D,IAAMC,gBAAgBT,WAAWI;IAEjC,IAAMM,UAAUT,QAAQ,WAAM;QAC5B,IAAMU,YAAY,IAAIR;QACtBI,OAAOK,OAAO,CAACC,SAAAA,OAAS;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,SAAAA;mBACjBN,UAAUK,GAAG,CAACC,UAAUC,WAAW,EAAED;;QAGvC,OAAQf,eAAe,IAAIC,IAAI,AAAC,qBAAGM,sBAAe,qBAAGE;IACrD,uDAAuD;IACzD,GAAG,EAAE;IAEL,qBACE,oBAACP,aAAae,QAAQ;QAACC,OAAOV;OAAUJ;AAE5C,EAAE;AAEF,OAAO,SAASe,SAAYC,UAAyB,EAAK;IACxD,IAAMZ,UAAUV,WAAWI;IAC3B,OAAOM,QAAQa,GAAG,CAACD;AACrB,CAAC;AAED,OAAO,SAASE,SAAYF,UAAyB,EAAK;IACxD,OAAOpB,aAAaqB,GAAG,CAACD;AAC1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/providers/index.d.ts"],"sourcesContent":["export * from './StoreProvider';\n"],"names":[],"mappings":"AAAA,cAAc,kBAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/providers/index.ts"],"sourcesContent":["export * from './StoreProvider';\n"],"names":[],"mappings":"AAAA,cAAc,kBAAkB"}
|
|
@@ -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,27 +0,0 @@
|
|
|
1
|
-
import { _ as _create_class } from "@swc/helpers/_/_create_class";
|
|
2
|
-
import { makeAutoObservable } from 'mobx';
|
|
3
|
-
export var NizzaStore = /*#__PURE__*/ function() {
|
|
4
|
-
"use strict";
|
|
5
|
-
function NizzaStore() {
|
|
6
|
-
makeAutoObservable(this, {}, {
|
|
7
|
-
name: 'NizzaStore',
|
|
8
|
-
autoBind: true
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
var _proto = NizzaStore.prototype;
|
|
12
|
-
_proto.configure = function configure(config) {
|
|
13
|
-
this._config = config;
|
|
14
|
-
};
|
|
15
|
-
_create_class(NizzaStore, [
|
|
16
|
-
{
|
|
17
|
-
key: "config",
|
|
18
|
-
get: function get() {
|
|
19
|
-
return this._config;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
]);
|
|
23
|
-
return NizzaStore;
|
|
24
|
-
}();
|
|
25
|
-
export var nizza = new NizzaStore();
|
|
26
|
-
|
|
27
|
-
//# 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","name","autoBind","configure","config","_config","nizza"],"mappings":";AACA,SAASA,kBAAkB,QAAQ,OAAO;AAE1C,OAAO,IAAA,AAAMC,2BAgBV,AAhBI;;aAAMA;QAITD,mBAAmB,IAAI,EAAE,CAAC,GAAG;YAAEE,MAAM;YAAcC,UAAU,IAAI;QAAC;;iBAJzDF;IAOXG,OAAAA,SAEC,GAFDA,SAAAA,UAAUC,MAA0B,EAAE;QACpC,IAAI,CAACC,OAAO,GAAGD;IACjB;kBATWJ;;YAWPI,KAAAA;iBAAJ,eAAa;gBACX,OAAO,IAAI,CAACC,OAAO;YACrB;;;WAbWL;IAcZ;AAED,OAAO,IAAMM,QAAQ,IAAIN,aAAa"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/stores/index.d.ts"],"sourcesContent":["export * from './NizzaStore';\n"],"names":[],"mappings":"AAAA,cAAc,eAAe"}
|
package/src/lib/stores/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/stores/index.ts"],"sourcesContent":["export * from './NizzaStore';\n"],"names":[],"mappings":"AAAA,cAAc,eAAe"}
|
|
@@ -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"}
|