@nizza/core 0.2.0 → 0.3.0-alpha.1

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 (191) hide show
  1. package/package.json +13 -10
  2. package/src/environments/environment.d.js +3 -0
  3. package/src/environments/environment.d.js.map +1 -0
  4. package/src/environments/environment.js +28 -0
  5. package/src/environments/environment.js.map +1 -0
  6. package/src/environments/environment.prod.d.js +3 -0
  7. package/src/environments/environment.prod.d.js.map +1 -0
  8. package/src/environments/environment.prod.d.ts +20 -0
  9. package/src/environments/environment.prod.js +27 -0
  10. package/src/environments/environment.prod.js.map +1 -0
  11. package/src/environments/environment.staging.d.js +3 -0
  12. package/src/environments/environment.staging.d.js.map +1 -0
  13. package/src/environments/environment.staging.d.ts +20 -0
  14. package/src/environments/environment.staging.js +27 -0
  15. package/src/environments/environment.staging.js.map +1 -0
  16. package/src/index.d.js +8 -0
  17. package/src/index.d.js.map +1 -0
  18. package/{dist → src}/index.d.ts +2 -0
  19. package/src/index.js +8 -0
  20. package/src/index.js.map +1 -0
  21. package/src/lib/constants/index.d.js +3 -0
  22. package/src/lib/constants/index.d.js.map +1 -0
  23. package/src/lib/constants/index.d.ts +1 -0
  24. package/src/lib/constants/index.js +3 -0
  25. package/src/lib/constants/index.js.map +1 -0
  26. package/src/lib/constants/products.d.js +3 -0
  27. package/src/lib/constants/products.d.js.map +1 -0
  28. package/src/lib/constants/products.d.ts +3 -0
  29. package/src/lib/constants/products.js +6 -0
  30. package/src/lib/constants/products.js.map +1 -0
  31. package/src/lib/domain/AggregateRoot.d.js +3 -0
  32. package/src/lib/domain/AggregateRoot.d.js.map +1 -0
  33. package/{dist → src}/lib/domain/AggregateRoot.d.ts +1 -0
  34. package/src/lib/domain/AggregateRoot.js +22 -0
  35. package/src/lib/domain/AggregateRoot.js.map +1 -0
  36. package/src/lib/domain/BaseMobxStore.d.js +3 -0
  37. package/src/lib/domain/BaseMobxStore.d.js.map +1 -0
  38. package/src/lib/domain/BaseMobxStore.js +4 -0
  39. package/src/lib/domain/BaseMobxStore.js.map +1 -0
  40. package/src/lib/domain/ValueObject.d.js +3 -0
  41. package/src/lib/domain/ValueObject.d.js.map +1 -0
  42. package/src/lib/domain/ValueObject.d.ts +5 -0
  43. package/src/lib/domain/ValueObject.js +12 -0
  44. package/src/lib/domain/ValueObject.js.map +1 -0
  45. package/src/lib/domain/errors/DomainError.d.js +3 -0
  46. package/src/lib/domain/errors/DomainError.d.js.map +1 -0
  47. package/src/lib/domain/errors/DomainError.js +18 -0
  48. package/src/lib/domain/errors/DomainError.js.map +1 -0
  49. package/src/lib/domain/errors/api.d.js +3 -0
  50. package/src/lib/domain/errors/api.d.js.map +1 -0
  51. package/src/lib/domain/errors/api.js +8 -0
  52. package/src/lib/domain/errors/api.js.map +1 -0
  53. package/src/lib/domain/errors/app.d.js +3 -0
  54. package/src/lib/domain/errors/app.d.js.map +1 -0
  55. package/src/lib/domain/errors/app.js +14 -0
  56. package/src/lib/domain/errors/app.js.map +1 -0
  57. package/src/lib/domain/errors/index.d.js +5 -0
  58. package/src/lib/domain/errors/index.d.js.map +1 -0
  59. package/src/lib/domain/errors/index.js +5 -0
  60. package/src/lib/domain/errors/index.js.map +1 -0
  61. package/src/lib/domain/index.d.js +6 -0
  62. package/src/lib/domain/index.d.js.map +1 -0
  63. package/{dist → src}/lib/domain/index.d.ts +1 -0
  64. package/src/lib/domain/index.js +6 -0
  65. package/src/lib/domain/index.js.map +1 -0
  66. package/src/lib/providers/StoreProvider.d.js +3 -0
  67. package/src/lib/providers/StoreProvider.d.js.map +1 -0
  68. package/src/lib/providers/StoreProvider.js +36 -0
  69. package/src/lib/providers/StoreProvider.js.map +1 -0
  70. package/src/lib/providers/index.d.js +3 -0
  71. package/src/lib/providers/index.d.js.map +1 -0
  72. package/src/lib/providers/index.js +3 -0
  73. package/src/lib/providers/index.js.map +1 -0
  74. package/src/lib/stores/NizzaStore.d.js +3 -0
  75. package/src/lib/stores/NizzaStore.d.js.map +1 -0
  76. package/src/lib/stores/NizzaStore.d.ts +8 -0
  77. package/src/lib/stores/NizzaStore.js +18 -0
  78. package/src/lib/stores/NizzaStore.js.map +1 -0
  79. package/src/lib/stores/index.d.js +3 -0
  80. package/src/lib/stores/index.d.js.map +1 -0
  81. package/src/lib/stores/index.d.ts +1 -0
  82. package/src/lib/stores/index.js +3 -0
  83. package/src/lib/stores/index.js.map +1 -0
  84. package/src/lib/types/api-graphql-types.d.js +3 -0
  85. package/src/lib/types/api-graphql-types.d.js.map +1 -0
  86. package/src/lib/types/api-graphql-types.js +2003 -0
  87. package/src/lib/types/api-graphql-types.js.map +1 -0
  88. package/src/lib/types/app-module.d.js +3 -0
  89. package/src/lib/types/app-module.d.js.map +1 -0
  90. package/src/lib/types/app-module.js +3 -0
  91. package/src/lib/types/app-module.js.map +1 -0
  92. package/src/lib/types/index.d.js +9 -0
  93. package/src/lib/types/index.d.js.map +1 -0
  94. package/{dist → src}/lib/types/index.d.ts +2 -0
  95. package/src/lib/types/index.js +9 -0
  96. package/src/lib/types/index.js.map +1 -0
  97. package/src/lib/types/mobx-store.d.js +3 -0
  98. package/src/lib/types/mobx-store.d.js.map +1 -0
  99. package/src/lib/types/mobx-store.js +3 -0
  100. package/src/lib/types/mobx-store.js.map +1 -0
  101. package/src/lib/types/nizzaGlobalObject.d.js +3 -0
  102. package/src/lib/types/nizzaGlobalObject.d.js.map +1 -0
  103. package/src/lib/types/nizzaGlobalObject.d.ts +11 -0
  104. package/src/lib/types/nizzaGlobalObject.js +3 -0
  105. package/src/lib/types/nizzaGlobalObject.js.map +1 -0
  106. package/src/lib/types/products/base.d.js +8 -0
  107. package/src/lib/types/products/base.d.js.map +1 -0
  108. package/src/lib/types/products/base.d.ts +44 -0
  109. package/src/lib/types/products/base.js +8 -0
  110. package/src/lib/types/products/base.js.map +1 -0
  111. package/src/lib/types/products/index.d.js +4 -0
  112. package/src/lib/types/products/index.d.js.map +1 -0
  113. package/src/lib/types/products/index.d.ts +2 -0
  114. package/src/lib/types/products/index.js +4 -0
  115. package/src/lib/types/products/index.js.map +1 -0
  116. package/src/lib/types/products/product.d.js +3 -0
  117. package/src/lib/types/products/product.d.js.map +1 -0
  118. package/src/lib/types/products/product.d.ts +16 -0
  119. package/src/lib/types/products/product.js +3 -0
  120. package/src/lib/types/products/product.js.map +1 -0
  121. package/src/lib/types/utils.d.js +3 -0
  122. package/src/lib/types/utils.d.js.map +1 -0
  123. package/src/lib/types/utils.js +4 -0
  124. package/src/lib/types/utils.js.map +1 -0
  125. package/src/lib/utils/Result.d.js +3 -0
  126. package/src/lib/utils/Result.d.js.map +1 -0
  127. package/src/lib/utils/Result.js +63 -0
  128. package/src/lib/utils/Result.js.map +1 -0
  129. package/src/lib/utils/apiCall.d.js +3 -0
  130. package/src/lib/utils/apiCall.d.js.map +1 -0
  131. package/src/lib/utils/apiCall.js +28 -0
  132. package/src/lib/utils/apiCall.js.map +1 -0
  133. package/src/lib/utils/customStorage/MemoryStorage.d.js +3 -0
  134. package/src/lib/utils/customStorage/MemoryStorage.d.js.map +1 -0
  135. package/src/lib/utils/customStorage/MemoryStorage.js +44 -0
  136. package/src/lib/utils/customStorage/MemoryStorage.js.map +1 -0
  137. package/src/lib/utils/customStorage/index.d.js +3 -0
  138. package/src/lib/utils/customStorage/index.d.js.map +1 -0
  139. package/src/lib/utils/customStorage/index.js +36 -0
  140. package/src/lib/utils/customStorage/index.js.map +1 -0
  141. package/src/lib/utils/customStorage/utils.d.js +3 -0
  142. package/src/lib/utils/customStorage/utils.d.js.map +1 -0
  143. package/src/lib/utils/customStorage/utils.js +24 -0
  144. package/src/lib/utils/customStorage/utils.js.map +1 -0
  145. package/src/lib/utils/fingerprint.d.js +3 -0
  146. package/src/lib/utils/fingerprint.d.js.map +1 -0
  147. package/src/lib/utils/fingerprint.d.ts +1 -0
  148. package/src/lib/utils/fingerprint.js +14 -0
  149. package/src/lib/utils/fingerprint.js.map +1 -0
  150. package/src/lib/utils/helpers.d.js +3 -0
  151. package/src/lib/utils/helpers.d.js.map +1 -0
  152. package/{dist → src}/lib/utils/helpers.d.ts +0 -2
  153. package/src/lib/utils/helpers.js +15 -0
  154. package/src/lib/utils/helpers.js.map +1 -0
  155. package/src/lib/utils/index.d.js +8 -0
  156. package/src/lib/utils/index.d.js.map +1 -0
  157. package/src/lib/utils/index.js +8 -0
  158. package/src/lib/utils/index.js.map +1 -0
  159. package/src/lib/utils/lazyLoad.d.js +3 -0
  160. package/src/lib/utils/lazyLoad.d.js.map +1 -0
  161. package/src/lib/utils/lazyLoad.js +17 -0
  162. package/src/lib/utils/lazyLoad.js.map +1 -0
  163. package/src/typings/libs.d.js +2 -0
  164. package/src/typings/libs.d.js.map +1 -0
  165. package/vite-env.d.js +3 -0
  166. package/vite-env.d.js.map +1 -0
  167. package/vite.config.js +10 -0
  168. package/vite.config.js.map +1 -0
  169. package/README.md +0 -3
  170. package/dist/index.es.js +0 -1762
  171. package/dist/lib/utils/fingerprint.d.ts +0 -1
  172. package/dist/typings/libs.d.ts +0 -0
  173. /package/{dist → src}/environments/environment.d.ts +0 -0
  174. /package/{dist → src}/lib/domain/BaseMobxStore.d.ts +0 -0
  175. /package/{dist → src}/lib/domain/errors/DomainError.d.ts +0 -0
  176. /package/{dist → src}/lib/domain/errors/api.d.ts +0 -0
  177. /package/{dist → src}/lib/domain/errors/app.d.ts +0 -0
  178. /package/{dist → src}/lib/domain/errors/index.d.ts +0 -0
  179. /package/{dist → src}/lib/providers/StoreProvider.d.ts +0 -0
  180. /package/{dist → src}/lib/providers/index.d.ts +0 -0
  181. /package/{dist → src}/lib/types/api-graphql-types.d.ts +0 -0
  182. /package/{dist → src}/lib/types/app-module.d.ts +0 -0
  183. /package/{dist → src}/lib/types/mobx-store.d.ts +0 -0
  184. /package/{dist → src}/lib/types/utils.d.ts +0 -0
  185. /package/{dist → src}/lib/utils/Result.d.ts +0 -0
  186. /package/{dist → src}/lib/utils/apiCall.d.ts +0 -0
  187. /package/{dist → src}/lib/utils/customStorage/MemoryStorage.d.ts +0 -0
  188. /package/{dist → src}/lib/utils/customStorage/index.d.ts +0 -0
  189. /package/{dist → src}/lib/utils/customStorage/utils.d.ts +0 -0
  190. /package/{dist → src}/lib/utils/index.d.ts +0 -0
  191. /package/{dist → src}/lib/utils/lazyLoad.d.ts +0 -0
package/dist/index.es.js DELETED
@@ -1,1762 +0,0 @@
1
- var R = Object.defineProperty;
2
- var V = (n, e, i) => e in n ? R(n, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[e] = i;
3
- var m = (n, e, i) => (V(n, typeof e != "symbol" ? e + "" : e, i), i);
4
- import U, { createContext as G, useContext as D, useMemo as z, lazy as L, Suspense as M } from "react";
5
- class q {
6
- constructor(e) {
7
- m(this, "aggregate");
8
- m(this, "_numSetPropsApplied", 0);
9
- this.aggregate = e;
10
- }
11
- setProps(e) {
12
- for (const [i, a] of Object.entries(e))
13
- i in this.aggregate && (this.aggregate[i] = a);
14
- this._numSetPropsApplied++;
15
- }
16
- get isFirstSetProps() {
17
- return this._numSetPropsApplied === 1;
18
- }
19
- }
20
- class Fe {
21
- }
22
- class y extends Error {
23
- constructor(e, i, a) {
24
- super(i), this.value = a, this.name = e;
25
- }
26
- toDTO() {
27
- return {
28
- name: this.name,
29
- message: this.message,
30
- ...this.value && { value: this.value }
31
- };
32
- }
33
- }
34
- class Ce extends y {
35
- constructor(e) {
36
- super(
37
- "RESOURCE_NOT_FOUND_ERROR",
38
- `Resource with id '${e}' not found.`,
39
- e
40
- );
41
- }
42
- }
43
- class be extends y {
44
- constructor(e) {
45
- super(
46
- "APP_UNEXPECTED_ERROR",
47
- e.message ?? "An unexpected error occurred.",
48
- e
49
- );
50
- }
51
- }
52
- class he extends y {
53
- constructor() {
54
- super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
55
- }
56
- }
57
- var u = {}, $ = {
58
- get exports() {
59
- return u;
60
- },
61
- set exports(n) {
62
- u = n;
63
- }
64
- }, k = {};
65
- /*
66
- object-assign
67
- (c) Sindre Sorhus
68
- @license MIT
69
- */
70
- var C = Object.getOwnPropertySymbols, B = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
71
- function Q(n) {
72
- if (n == null)
73
- throw new TypeError("Object.assign cannot be called with null or undefined");
74
- return Object(n);
75
- }
76
- function J() {
77
- try {
78
- if (!Object.assign)
79
- return !1;
80
- var n = new String("abc");
81
- if (n[5] = "de", Object.getOwnPropertyNames(n)[0] === "5")
82
- return !1;
83
- for (var e = {}, i = 0; i < 10; i++)
84
- e["_" + String.fromCharCode(i)] = i;
85
- var a = Object.getOwnPropertyNames(e).map(function(l) {
86
- return e[l];
87
- });
88
- if (a.join("") !== "0123456789")
89
- return !1;
90
- var t = {};
91
- return "abcdefghijklmnopqrst".split("").forEach(function(l) {
92
- t[l] = l;
93
- }), Object.keys(Object.assign({}, t)).join("") === "abcdefghijklmnopqrst";
94
- } catch {
95
- return !1;
96
- }
97
- }
98
- J();
99
- /** @license React v17.0.2
100
- * react-jsx-runtime.production.min.js
101
- *
102
- * Copyright (c) Facebook, Inc. and its affiliates.
103
- *
104
- * This source code is licensed under the MIT license found in the
105
- * LICENSE file in the root directory of this source tree.
106
- */
107
- var H = U, O = 60103;
108
- k.Fragment = 60107;
109
- if (typeof Symbol == "function" && Symbol.for) {
110
- var b = Symbol.for;
111
- O = b("react.element"), k.Fragment = b("react.fragment");
112
- }
113
- var X = H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Y = Object.prototype.hasOwnProperty, Z = { key: !0, ref: !0, __self: !0, __source: !0 };
114
- function _(n, e, i) {
115
- var a, t = {}, l = null, d = null;
116
- i !== void 0 && (l = "" + i), e.key !== void 0 && (l = "" + e.key), e.ref !== void 0 && (d = e.ref);
117
- for (a in e)
118
- Y.call(e, a) && !Z.hasOwnProperty(a) && (t[a] = e[a]);
119
- if (n && n.defaultProps)
120
- for (a in e = n.defaultProps, e)
121
- t[a] === void 0 && (t[a] = e[a]);
122
- return { $$typeof: O, type: n, key: l, ref: d, props: t, _owner: X.current };
123
- }
124
- k.jsx = _;
125
- k.jsxs = _;
126
- (function(n) {
127
- n.exports = k;
128
- })($);
129
- let F = /* @__PURE__ */ new Map();
130
- const f = G(F), we = ({ children: n, stores: e, instances: i }) => {
131
- const a = D(f), t = z(() => {
132
- const l = /* @__PURE__ */ new Map();
133
- return e.forEach((d) => {
134
- let o;
135
- try {
136
- o = d();
137
- } catch {
138
- o = new d();
139
- }
140
- l.set(d, o);
141
- }), i == null || i.forEach(
142
- (d) => l.set(d.constructor, d)
143
- ), F = new Map([...a, ...l]);
144
- }, []);
145
- return /* @__PURE__ */ u.jsx(f.Provider, { value: t, children: n });
146
- };
147
- function Te(n) {
148
- return D(f).get(n);
149
- }
150
- function Ee(n) {
151
- return F.get(n);
152
- }
153
- var A = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(A || {}), j = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(j || {});
154
- const K = {
155
- kind: "Document",
156
- definitions: [
157
- {
158
- kind: "OperationDefinition",
159
- operation: "mutation",
160
- name: { kind: "Name", value: "deleteAllCustomization" },
161
- variableDefinitions: [
162
- {
163
- kind: "VariableDefinition",
164
- variable: { kind: "Variable", name: { kind: "Name", value: "data" } },
165
- type: {
166
- kind: "NonNullType",
167
- type: {
168
- kind: "NamedType",
169
- name: { kind: "Name", value: "CustomPlayerInputAccount" }
170
- }
171
- }
172
- }
173
- ],
174
- selectionSet: {
175
- kind: "SelectionSet",
176
- selections: [
177
- {
178
- kind: "Field",
179
- name: { kind: "Name", value: "deleteAllCustomPlayer" },
180
- arguments: [
181
- {
182
- kind: "Argument",
183
- name: { kind: "Name", value: "data" },
184
- value: {
185
- kind: "Variable",
186
- name: { kind: "Name", value: "data" }
187
- }
188
- }
189
- ],
190
- selectionSet: {
191
- kind: "SelectionSet",
192
- selections: [
193
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
194
- {
195
- kind: "InlineFragment",
196
- typeCondition: {
197
- kind: "NamedType",
198
- name: { kind: "Name", value: "Error" }
199
- },
200
- selectionSet: {
201
- kind: "SelectionSet",
202
- selections: [
203
- {
204
- kind: "Field",
205
- name: { kind: "Name", value: "message" }
206
- },
207
- {
208
- kind: "Field",
209
- name: { kind: "Name", value: "statusCode" }
210
- },
211
- {
212
- kind: "Field",
213
- name: { kind: "Name", value: "timestamp" }
214
- }
215
- ]
216
- }
217
- },
218
- {
219
- kind: "InlineFragment",
220
- typeCondition: {
221
- kind: "NamedType",
222
- name: { kind: "Name", value: "ErrorGeneral" }
223
- },
224
- selectionSet: {
225
- kind: "SelectionSet",
226
- selections: [
227
- {
228
- kind: "Field",
229
- name: { kind: "Name", value: "message" }
230
- },
231
- {
232
- kind: "Field",
233
- name: { kind: "Name", value: "statusCode" }
234
- },
235
- {
236
- kind: "Field",
237
- name: { kind: "Name", value: "timestamp" }
238
- }
239
- ]
240
- }
241
- }
242
- ]
243
- }
244
- }
245
- ]
246
- }
247
- }
248
- ]
249
- }, ee = {
250
- kind: "Document",
251
- definitions: [
252
- {
253
- kind: "OperationDefinition",
254
- operation: "query",
255
- name: { kind: "Name", value: "getAllCustomization" },
256
- variableDefinitions: [
257
- {
258
- kind: "VariableDefinition",
259
- variable: { kind: "Variable", name: { kind: "Name", value: "data" } },
260
- type: {
261
- kind: "NonNullType",
262
- type: {
263
- kind: "NamedType",
264
- name: { kind: "Name", value: "QueryInput" }
265
- }
266
- }
267
- }
268
- ],
269
- selectionSet: {
270
- kind: "SelectionSet",
271
- selections: [
272
- {
273
- kind: "Field",
274
- name: { kind: "Name", value: "getAllCustomPlayer" },
275
- arguments: [
276
- {
277
- kind: "Argument",
278
- name: { kind: "Name", value: "data" },
279
- value: {
280
- kind: "Variable",
281
- name: { kind: "Name", value: "data" }
282
- }
283
- }
284
- ],
285
- selectionSet: {
286
- kind: "SelectionSet",
287
- selections: [
288
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
289
- {
290
- kind: "InlineFragment",
291
- typeCondition: {
292
- kind: "NamedType",
293
- name: { kind: "Name", value: "CustomPlayerSuccessArray" }
294
- },
295
- selectionSet: {
296
- kind: "SelectionSet",
297
- selections: [
298
- {
299
- kind: "Field",
300
- name: { kind: "Name", value: "data" },
301
- selectionSet: {
302
- kind: "SelectionSet",
303
- selections: [
304
- {
305
- kind: "Field",
306
- name: { kind: "Name", value: "account" }
307
- },
308
- {
309
- kind: "Field",
310
- name: { kind: "Name", value: "data" }
311
- },
312
- {
313
- kind: "Field",
314
- name: { kind: "Name", value: "section" }
315
- },
316
- {
317
- kind: "Field",
318
- name: { kind: "Name", value: "id" }
319
- }
320
- ]
321
- }
322
- }
323
- ]
324
- }
325
- },
326
- {
327
- kind: "InlineFragment",
328
- typeCondition: {
329
- kind: "NamedType",
330
- name: { kind: "Name", value: "Error" }
331
- },
332
- selectionSet: {
333
- kind: "SelectionSet",
334
- selections: [
335
- {
336
- kind: "Field",
337
- name: { kind: "Name", value: "message" }
338
- },
339
- {
340
- kind: "Field",
341
- name: { kind: "Name", value: "statusCode" }
342
- },
343
- {
344
- kind: "Field",
345
- name: { kind: "Name", value: "timestamp" }
346
- }
347
- ]
348
- }
349
- },
350
- {
351
- kind: "InlineFragment",
352
- typeCondition: {
353
- kind: "NamedType",
354
- name: { kind: "Name", value: "ErrorGeneral" }
355
- },
356
- selectionSet: {
357
- kind: "SelectionSet",
358
- selections: [
359
- {
360
- kind: "Field",
361
- name: { kind: "Name", value: "message" }
362
- },
363
- {
364
- kind: "Field",
365
- name: { kind: "Name", value: "statusCode" }
366
- },
367
- {
368
- kind: "Field",
369
- name: { kind: "Name", value: "timestamp" }
370
- }
371
- ]
372
- }
373
- }
374
- ]
375
- }
376
- }
377
- ]
378
- }
379
- }
380
- ]
381
- }, ne = {
382
- kind: "Document",
383
- definitions: [
384
- {
385
- kind: "OperationDefinition",
386
- operation: "mutation",
387
- name: { kind: "Name", value: "updateCustomization" },
388
- variableDefinitions: [
389
- {
390
- kind: "VariableDefinition",
391
- variable: { kind: "Variable", name: { kind: "Name", value: "data" } },
392
- type: {
393
- kind: "NonNullType",
394
- type: {
395
- kind: "NamedType",
396
- name: { kind: "Name", value: "CustomPlayerInput" }
397
- }
398
- }
399
- }
400
- ],
401
- selectionSet: {
402
- kind: "SelectionSet",
403
- selections: [
404
- {
405
- kind: "Field",
406
- name: { kind: "Name", value: "updateCustomPlayer" },
407
- arguments: [
408
- {
409
- kind: "Argument",
410
- name: { kind: "Name", value: "data" },
411
- value: {
412
- kind: "Variable",
413
- name: { kind: "Name", value: "data" }
414
- }
415
- }
416
- ],
417
- selectionSet: {
418
- kind: "SelectionSet",
419
- selections: [
420
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
421
- {
422
- kind: "InlineFragment",
423
- typeCondition: {
424
- kind: "NamedType",
425
- name: { kind: "Name", value: "Error" }
426
- },
427
- selectionSet: {
428
- kind: "SelectionSet",
429
- selections: [
430
- {
431
- kind: "Field",
432
- name: { kind: "Name", value: "message" }
433
- },
434
- {
435
- kind: "Field",
436
- name: { kind: "Name", value: "statusCode" }
437
- },
438
- {
439
- kind: "Field",
440
- name: { kind: "Name", value: "timestamp" }
441
- }
442
- ]
443
- }
444
- },
445
- {
446
- kind: "InlineFragment",
447
- typeCondition: {
448
- kind: "NamedType",
449
- name: { kind: "Name", value: "ErrorGeneral" }
450
- },
451
- selectionSet: {
452
- kind: "SelectionSet",
453
- selections: [
454
- {
455
- kind: "Field",
456
- name: { kind: "Name", value: "message" }
457
- },
458
- {
459
- kind: "Field",
460
- name: { kind: "Name", value: "statusCode" }
461
- },
462
- {
463
- kind: "Field",
464
- name: { kind: "Name", value: "timestamp" }
465
- }
466
- ]
467
- }
468
- }
469
- ]
470
- }
471
- }
472
- ]
473
- }
474
- }
475
- ]
476
- }, ie = {
477
- kind: "Document",
478
- definitions: [
479
- {
480
- kind: "OperationDefinition",
481
- operation: "mutation",
482
- name: { kind: "Name", value: "AddCollection" },
483
- variableDefinitions: [
484
- {
485
- kind: "VariableDefinition",
486
- variable: { kind: "Variable", name: { kind: "Name", value: "data" } },
487
- type: {
488
- kind: "NonNullType",
489
- type: {
490
- kind: "NamedType",
491
- name: { kind: "Name", value: "CreateCollectionInput" }
492
- }
493
- }
494
- }
495
- ],
496
- selectionSet: {
497
- kind: "SelectionSet",
498
- selections: [
499
- {
500
- kind: "Field",
501
- name: { kind: "Name", value: "createCollection" },
502
- arguments: [
503
- {
504
- kind: "Argument",
505
- name: { kind: "Name", value: "data" },
506
- value: {
507
- kind: "Variable",
508
- name: { kind: "Name", value: "data" }
509
- }
510
- }
511
- ],
512
- selectionSet: {
513
- kind: "SelectionSet",
514
- selections: [
515
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
516
- {
517
- kind: "InlineFragment",
518
- typeCondition: {
519
- kind: "NamedType",
520
- name: { kind: "Name", value: "CollectionSuccess" }
521
- },
522
- selectionSet: {
523
- kind: "SelectionSet",
524
- selections: [
525
- {
526
- kind: "Field",
527
- name: { kind: "Name", value: "data" },
528
- selectionSet: {
529
- kind: "SelectionSet",
530
- selections: [
531
- {
532
- kind: "Field",
533
- name: { kind: "Name", value: "id" }
534
- }
535
- ]
536
- }
537
- }
538
- ]
539
- }
540
- },
541
- {
542
- kind: "InlineFragment",
543
- typeCondition: {
544
- kind: "NamedType",
545
- name: { kind: "Name", value: "Error" }
546
- },
547
- selectionSet: {
548
- kind: "SelectionSet",
549
- selections: [
550
- {
551
- kind: "Field",
552
- name: { kind: "Name", value: "message" }
553
- },
554
- {
555
- kind: "Field",
556
- name: { kind: "Name", value: "statusCode" }
557
- },
558
- {
559
- kind: "Field",
560
- name: { kind: "Name", value: "timestamp" }
561
- }
562
- ]
563
- }
564
- },
565
- {
566
- kind: "InlineFragment",
567
- typeCondition: {
568
- kind: "NamedType",
569
- name: { kind: "Name", value: "ErrorGeneral" }
570
- },
571
- selectionSet: {
572
- kind: "SelectionSet",
573
- selections: [
574
- {
575
- kind: "Field",
576
- name: { kind: "Name", value: "message" }
577
- },
578
- {
579
- kind: "Field",
580
- name: { kind: "Name", value: "statusCode" }
581
- },
582
- {
583
- kind: "Field",
584
- name: { kind: "Name", value: "timestamp" }
585
- }
586
- ]
587
- }
588
- }
589
- ]
590
- }
591
- }
592
- ]
593
- }
594
- }
595
- ]
596
- }, ae = {
597
- kind: "Document",
598
- definitions: [
599
- {
600
- kind: "OperationDefinition",
601
- operation: "mutation",
602
- name: { kind: "Name", value: "DeleteCollection" },
603
- variableDefinitions: [
604
- {
605
- kind: "VariableDefinition",
606
- variable: { kind: "Variable", name: { kind: "Name", value: "data" } },
607
- type: {
608
- kind: "NonNullType",
609
- type: {
610
- kind: "NamedType",
611
- name: { kind: "Name", value: "QueryInput" }
612
- }
613
- }
614
- }
615
- ],
616
- selectionSet: {
617
- kind: "SelectionSet",
618
- selections: [
619
- {
620
- kind: "Field",
621
- name: { kind: "Name", value: "deleteCollection" },
622
- arguments: [
623
- {
624
- kind: "Argument",
625
- name: { kind: "Name", value: "data" },
626
- value: {
627
- kind: "Variable",
628
- name: { kind: "Name", value: "data" }
629
- }
630
- }
631
- ],
632
- selectionSet: {
633
- kind: "SelectionSet",
634
- selections: [
635
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
636
- {
637
- kind: "InlineFragment",
638
- typeCondition: {
639
- kind: "NamedType",
640
- name: { kind: "Name", value: "Error" }
641
- },
642
- selectionSet: {
643
- kind: "SelectionSet",
644
- selections: [
645
- {
646
- kind: "Field",
647
- name: { kind: "Name", value: "message" }
648
- },
649
- {
650
- kind: "Field",
651
- name: { kind: "Name", value: "statusCode" }
652
- },
653
- {
654
- kind: "Field",
655
- name: { kind: "Name", value: "timestamp" }
656
- }
657
- ]
658
- }
659
- },
660
- {
661
- kind: "InlineFragment",
662
- typeCondition: {
663
- kind: "NamedType",
664
- name: { kind: "Name", value: "ErrorGeneral" }
665
- },
666
- selectionSet: {
667
- kind: "SelectionSet",
668
- selections: [
669
- {
670
- kind: "Field",
671
- name: { kind: "Name", value: "message" }
672
- },
673
- {
674
- kind: "Field",
675
- name: { kind: "Name", value: "statusCode" }
676
- },
677
- {
678
- kind: "Field",
679
- name: { kind: "Name", value: "timestamp" }
680
- }
681
- ]
682
- }
683
- }
684
- ]
685
- }
686
- }
687
- ]
688
- }
689
- }
690
- ]
691
- }, te = {
692
- kind: "Document",
693
- definitions: [
694
- {
695
- kind: "OperationDefinition",
696
- operation: "query",
697
- name: { kind: "Name", value: "FindCollection" },
698
- variableDefinitions: [
699
- {
700
- kind: "VariableDefinition",
701
- variable: { kind: "Variable", name: { kind: "Name", value: "data" } },
702
- type: {
703
- kind: "NonNullType",
704
- type: {
705
- kind: "NamedType",
706
- name: { kind: "Name", value: "QueryInput" }
707
- }
708
- }
709
- }
710
- ],
711
- selectionSet: {
712
- kind: "SelectionSet",
713
- selections: [
714
- {
715
- kind: "Field",
716
- name: { kind: "Name", value: "findCollection" },
717
- arguments: [
718
- {
719
- kind: "Argument",
720
- name: { kind: "Name", value: "data" },
721
- value: {
722
- kind: "Variable",
723
- name: { kind: "Name", value: "data" }
724
- }
725
- }
726
- ],
727
- selectionSet: {
728
- kind: "SelectionSet",
729
- selections: [
730
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
731
- {
732
- kind: "InlineFragment",
733
- typeCondition: {
734
- kind: "NamedType",
735
- name: { kind: "Name", value: "CollectionSuccess" }
736
- },
737
- selectionSet: {
738
- kind: "SelectionSet",
739
- selections: [
740
- {
741
- kind: "Field",
742
- name: { kind: "Name", value: "data" },
743
- selectionSet: {
744
- kind: "SelectionSet",
745
- selections: [
746
- {
747
- kind: "Field",
748
- name: { kind: "Name", value: "id" }
749
- },
750
- {
751
- kind: "Field",
752
- name: { kind: "Name", value: "account" }
753
- },
754
- {
755
- kind: "Field",
756
- name: { kind: "Name", value: "name" }
757
- },
758
- {
759
- kind: "Field",
760
- name: { kind: "Name", value: "description" }
761
- },
762
- {
763
- kind: "Field",
764
- name: { kind: "Name", value: "status" }
765
- },
766
- {
767
- kind: "Field",
768
- name: { kind: "Name", value: "createdat" }
769
- },
770
- {
771
- kind: "Field",
772
- name: { kind: "Name", value: "products" },
773
- selectionSet: {
774
- kind: "SelectionSet",
775
- selections: [
776
- {
777
- kind: "Field",
778
- name: { kind: "Name", value: "id" }
779
- },
780
- {
781
- kind: "Field",
782
- name: { kind: "Name", value: "account" }
783
- },
784
- {
785
- kind: "Field",
786
- name: { kind: "Name", value: "title" }
787
- },
788
- {
789
- kind: "Field",
790
- name: { kind: "Name", value: "link" }
791
- },
792
- {
793
- kind: "Field",
794
- name: { kind: "Name", value: "pictures" }
795
- },
796
- {
797
- kind: "Field",
798
- name: { kind: "Name", value: "price" }
799
- },
800
- {
801
- kind: "Field",
802
- name: { kind: "Name", value: "salesprice" }
803
- },
804
- {
805
- kind: "Field",
806
- name: { kind: "Name", value: "status" }
807
- },
808
- {
809
- kind: "Field",
810
- name: { kind: "Name", value: "createdat" }
811
- }
812
- ]
813
- }
814
- }
815
- ]
816
- }
817
- }
818
- ]
819
- }
820
- },
821
- {
822
- kind: "InlineFragment",
823
- typeCondition: {
824
- kind: "NamedType",
825
- name: { kind: "Name", value: "Error" }
826
- },
827
- selectionSet: {
828
- kind: "SelectionSet",
829
- selections: [
830
- {
831
- kind: "Field",
832
- name: { kind: "Name", value: "message" }
833
- },
834
- {
835
- kind: "Field",
836
- name: { kind: "Name", value: "statusCode" }
837
- },
838
- {
839
- kind: "Field",
840
- name: { kind: "Name", value: "timestamp" }
841
- }
842
- ]
843
- }
844
- },
845
- {
846
- kind: "InlineFragment",
847
- typeCondition: {
848
- kind: "NamedType",
849
- name: { kind: "Name", value: "ErrorGeneral" }
850
- },
851
- selectionSet: {
852
- kind: "SelectionSet",
853
- selections: [
854
- {
855
- kind: "Field",
856
- name: { kind: "Name", value: "message" }
857
- },
858
- {
859
- kind: "Field",
860
- name: { kind: "Name", value: "statusCode" }
861
- },
862
- {
863
- kind: "Field",
864
- name: { kind: "Name", value: "timestamp" }
865
- }
866
- ]
867
- }
868
- }
869
- ]
870
- }
871
- }
872
- ]
873
- }
874
- }
875
- ]
876
- }, de = {
877
- kind: "Document",
878
- definitions: [
879
- {
880
- kind: "OperationDefinition",
881
- operation: "query",
882
- name: { kind: "Name", value: "GetAllCollections" },
883
- variableDefinitions: [
884
- {
885
- kind: "VariableDefinition",
886
- variable: { kind: "Variable", name: { kind: "Name", value: "data" } },
887
- type: {
888
- kind: "NonNullType",
889
- type: {
890
- kind: "NamedType",
891
- name: { kind: "Name", value: "QueryInput" }
892
- }
893
- }
894
- }
895
- ],
896
- selectionSet: {
897
- kind: "SelectionSet",
898
- selections: [
899
- {
900
- kind: "Field",
901
- name: { kind: "Name", value: "getAllCollection" },
902
- arguments: [
903
- {
904
- kind: "Argument",
905
- name: { kind: "Name", value: "data" },
906
- value: {
907
- kind: "Variable",
908
- name: { kind: "Name", value: "data" }
909
- }
910
- }
911
- ],
912
- selectionSet: {
913
- kind: "SelectionSet",
914
- selections: [
915
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
916
- {
917
- kind: "InlineFragment",
918
- typeCondition: {
919
- kind: "NamedType",
920
- name: { kind: "Name", value: "CollectionSuccessArray" }
921
- },
922
- selectionSet: {
923
- kind: "SelectionSet",
924
- selections: [
925
- {
926
- kind: "Field",
927
- name: { kind: "Name", value: "data" },
928
- selectionSet: {
929
- kind: "SelectionSet",
930
- selections: [
931
- {
932
- kind: "Field",
933
- name: { kind: "Name", value: "id" }
934
- },
935
- {
936
- kind: "Field",
937
- name: { kind: "Name", value: "account" }
938
- },
939
- {
940
- kind: "Field",
941
- name: { kind: "Name", value: "name" }
942
- },
943
- {
944
- kind: "Field",
945
- name: { kind: "Name", value: "description" }
946
- },
947
- {
948
- kind: "Field",
949
- name: { kind: "Name", value: "status" }
950
- },
951
- {
952
- kind: "Field",
953
- name: { kind: "Name", value: "createdat" }
954
- },
955
- {
956
- kind: "Field",
957
- name: { kind: "Name", value: "products" },
958
- selectionSet: {
959
- kind: "SelectionSet",
960
- selections: [
961
- {
962
- kind: "Field",
963
- name: { kind: "Name", value: "id" }
964
- },
965
- {
966
- kind: "Field",
967
- name: { kind: "Name", value: "account" }
968
- },
969
- {
970
- kind: "Field",
971
- name: { kind: "Name", value: "title" }
972
- },
973
- {
974
- kind: "Field",
975
- name: { kind: "Name", value: "link" }
976
- },
977
- {
978
- kind: "Field",
979
- name: { kind: "Name", value: "pictures" }
980
- },
981
- {
982
- kind: "Field",
983
- name: { kind: "Name", value: "price" }
984
- },
985
- {
986
- kind: "Field",
987
- name: { kind: "Name", value: "salesprice" }
988
- },
989
- {
990
- kind: "Field",
991
- name: { kind: "Name", value: "status" }
992
- },
993
- {
994
- kind: "Field",
995
- name: { kind: "Name", value: "createdat" }
996
- }
997
- ]
998
- }
999
- }
1000
- ]
1001
- }
1002
- }
1003
- ]
1004
- }
1005
- },
1006
- {
1007
- kind: "InlineFragment",
1008
- typeCondition: {
1009
- kind: "NamedType",
1010
- name: { kind: "Name", value: "Error" }
1011
- },
1012
- selectionSet: {
1013
- kind: "SelectionSet",
1014
- selections: [
1015
- {
1016
- kind: "Field",
1017
- name: { kind: "Name", value: "message" }
1018
- },
1019
- {
1020
- kind: "Field",
1021
- name: { kind: "Name", value: "statusCode" }
1022
- },
1023
- {
1024
- kind: "Field",
1025
- name: { kind: "Name", value: "timestamp" }
1026
- }
1027
- ]
1028
- }
1029
- },
1030
- {
1031
- kind: "InlineFragment",
1032
- typeCondition: {
1033
- kind: "NamedType",
1034
- name: { kind: "Name", value: "ErrorGeneral" }
1035
- },
1036
- selectionSet: {
1037
- kind: "SelectionSet",
1038
- selections: [
1039
- {
1040
- kind: "Field",
1041
- name: { kind: "Name", value: "message" }
1042
- },
1043
- {
1044
- kind: "Field",
1045
- name: { kind: "Name", value: "statusCode" }
1046
- },
1047
- {
1048
- kind: "Field",
1049
- name: { kind: "Name", value: "timestamp" }
1050
- }
1051
- ]
1052
- }
1053
- }
1054
- ]
1055
- }
1056
- }
1057
- ]
1058
- }
1059
- }
1060
- ]
1061
- }, le = {
1062
- kind: "Document",
1063
- definitions: [
1064
- {
1065
- kind: "OperationDefinition",
1066
- operation: "mutation",
1067
- name: { kind: "Name", value: "ManageCollectionProduct" },
1068
- variableDefinitions: [
1069
- {
1070
- kind: "VariableDefinition",
1071
- variable: { kind: "Variable", name: { kind: "Name", value: "data" } },
1072
- type: {
1073
- kind: "NonNullType",
1074
- type: {
1075
- kind: "NamedType",
1076
- name: { kind: "Name", value: "ManageCollectionProductInInput" }
1077
- }
1078
- }
1079
- }
1080
- ],
1081
- selectionSet: {
1082
- kind: "SelectionSet",
1083
- selections: [
1084
- {
1085
- kind: "Field",
1086
- name: { kind: "Name", value: "manageCollectionProduct" },
1087
- arguments: [
1088
- {
1089
- kind: "Argument",
1090
- name: { kind: "Name", value: "data" },
1091
- value: {
1092
- kind: "Variable",
1093
- name: { kind: "Name", value: "data" }
1094
- }
1095
- }
1096
- ],
1097
- selectionSet: {
1098
- kind: "SelectionSet",
1099
- selections: [
1100
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
1101
- {
1102
- kind: "InlineFragment",
1103
- typeCondition: {
1104
- kind: "NamedType",
1105
- name: { kind: "Name", value: "Error" }
1106
- },
1107
- selectionSet: {
1108
- kind: "SelectionSet",
1109
- selections: [
1110
- {
1111
- kind: "Field",
1112
- name: { kind: "Name", value: "message" }
1113
- },
1114
- {
1115
- kind: "Field",
1116
- name: { kind: "Name", value: "statusCode" }
1117
- },
1118
- {
1119
- kind: "Field",
1120
- name: { kind: "Name", value: "timestamp" }
1121
- }
1122
- ]
1123
- }
1124
- },
1125
- {
1126
- kind: "InlineFragment",
1127
- typeCondition: {
1128
- kind: "NamedType",
1129
- name: { kind: "Name", value: "ErrorGeneral" }
1130
- },
1131
- selectionSet: {
1132
- kind: "SelectionSet",
1133
- selections: [
1134
- {
1135
- kind: "Field",
1136
- name: { kind: "Name", value: "message" }
1137
- },
1138
- {
1139
- kind: "Field",
1140
- name: { kind: "Name", value: "statusCode" }
1141
- },
1142
- {
1143
- kind: "Field",
1144
- name: { kind: "Name", value: "timestamp" }
1145
- }
1146
- ]
1147
- }
1148
- }
1149
- ]
1150
- }
1151
- }
1152
- ]
1153
- }
1154
- }
1155
- ]
1156
- }, oe = {
1157
- kind: "Document",
1158
- definitions: [
1159
- {
1160
- kind: "OperationDefinition",
1161
- operation: "query",
1162
- name: { kind: "Name", value: "SearchCollections" },
1163
- variableDefinitions: [
1164
- {
1165
- kind: "VariableDefinition",
1166
- variable: { kind: "Variable", name: { kind: "Name", value: "data" } },
1167
- type: {
1168
- kind: "NonNullType",
1169
- type: {
1170
- kind: "NamedType",
1171
- name: { kind: "Name", value: "QueryInput" }
1172
- }
1173
- }
1174
- }
1175
- ],
1176
- selectionSet: {
1177
- kind: "SelectionSet",
1178
- selections: [
1179
- {
1180
- kind: "Field",
1181
- name: { kind: "Name", value: "searchCollection" },
1182
- arguments: [
1183
- {
1184
- kind: "Argument",
1185
- name: { kind: "Name", value: "data" },
1186
- value: {
1187
- kind: "Variable",
1188
- name: { kind: "Name", value: "data" }
1189
- }
1190
- }
1191
- ],
1192
- selectionSet: {
1193
- kind: "SelectionSet",
1194
- selections: [
1195
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
1196
- {
1197
- kind: "InlineFragment",
1198
- typeCondition: {
1199
- kind: "NamedType",
1200
- name: { kind: "Name", value: "CollectionSuccessArray" }
1201
- },
1202
- selectionSet: {
1203
- kind: "SelectionSet",
1204
- selections: [
1205
- {
1206
- kind: "Field",
1207
- name: { kind: "Name", value: "data" },
1208
- selectionSet: {
1209
- kind: "SelectionSet",
1210
- selections: [
1211
- {
1212
- kind: "Field",
1213
- name: { kind: "Name", value: "id" }
1214
- },
1215
- {
1216
- kind: "Field",
1217
- name: { kind: "Name", value: "account" }
1218
- },
1219
- {
1220
- kind: "Field",
1221
- name: { kind: "Name", value: "name" }
1222
- },
1223
- {
1224
- kind: "Field",
1225
- name: { kind: "Name", value: "description" }
1226
- },
1227
- {
1228
- kind: "Field",
1229
- name: { kind: "Name", value: "status" }
1230
- },
1231
- {
1232
- kind: "Field",
1233
- name: { kind: "Name", value: "createdat" }
1234
- },
1235
- {
1236
- kind: "Field",
1237
- name: { kind: "Name", value: "products" },
1238
- selectionSet: {
1239
- kind: "SelectionSet",
1240
- selections: [
1241
- {
1242
- kind: "Field",
1243
- name: { kind: "Name", value: "id" }
1244
- },
1245
- {
1246
- kind: "Field",
1247
- name: { kind: "Name", value: "account" }
1248
- },
1249
- {
1250
- kind: "Field",
1251
- name: { kind: "Name", value: "title" }
1252
- },
1253
- {
1254
- kind: "Field",
1255
- name: { kind: "Name", value: "link" }
1256
- },
1257
- {
1258
- kind: "Field",
1259
- name: { kind: "Name", value: "pictures" }
1260
- },
1261
- {
1262
- kind: "Field",
1263
- name: { kind: "Name", value: "price" }
1264
- },
1265
- {
1266
- kind: "Field",
1267
- name: { kind: "Name", value: "salesprice" }
1268
- },
1269
- {
1270
- kind: "Field",
1271
- name: { kind: "Name", value: "status" }
1272
- },
1273
- {
1274
- kind: "Field",
1275
- name: { kind: "Name", value: "createdat" }
1276
- }
1277
- ]
1278
- }
1279
- }
1280
- ]
1281
- }
1282
- }
1283
- ]
1284
- }
1285
- },
1286
- {
1287
- kind: "InlineFragment",
1288
- typeCondition: {
1289
- kind: "NamedType",
1290
- name: { kind: "Name", value: "Error" }
1291
- },
1292
- selectionSet: {
1293
- kind: "SelectionSet",
1294
- selections: [
1295
- {
1296
- kind: "Field",
1297
- name: { kind: "Name", value: "message" }
1298
- },
1299
- {
1300
- kind: "Field",
1301
- name: { kind: "Name", value: "statusCode" }
1302
- },
1303
- {
1304
- kind: "Field",
1305
- name: { kind: "Name", value: "timestamp" }
1306
- }
1307
- ]
1308
- }
1309
- },
1310
- {
1311
- kind: "InlineFragment",
1312
- typeCondition: {
1313
- kind: "NamedType",
1314
- name: { kind: "Name", value: "ErrorGeneral" }
1315
- },
1316
- selectionSet: {
1317
- kind: "SelectionSet",
1318
- selections: [
1319
- {
1320
- kind: "Field",
1321
- name: { kind: "Name", value: "message" }
1322
- },
1323
- {
1324
- kind: "Field",
1325
- name: { kind: "Name", value: "statusCode" }
1326
- },
1327
- {
1328
- kind: "Field",
1329
- name: { kind: "Name", value: "timestamp" }
1330
- }
1331
- ]
1332
- }
1333
- }
1334
- ]
1335
- }
1336
- }
1337
- ]
1338
- }
1339
- }
1340
- ]
1341
- }, re = {
1342
- kind: "Document",
1343
- definitions: [
1344
- {
1345
- kind: "OperationDefinition",
1346
- operation: "mutation",
1347
- name: { kind: "Name", value: "UpdateCollection" },
1348
- variableDefinitions: [
1349
- {
1350
- kind: "VariableDefinition",
1351
- variable: { kind: "Variable", name: { kind: "Name", value: "data" } },
1352
- type: {
1353
- kind: "NonNullType",
1354
- type: {
1355
- kind: "NamedType",
1356
- name: { kind: "Name", value: "UpdateCollectionInput" }
1357
- }
1358
- }
1359
- }
1360
- ],
1361
- selectionSet: {
1362
- kind: "SelectionSet",
1363
- selections: [
1364
- {
1365
- kind: "Field",
1366
- name: { kind: "Name", value: "updateCollection" },
1367
- arguments: [
1368
- {
1369
- kind: "Argument",
1370
- name: { kind: "Name", value: "data" },
1371
- value: {
1372
- kind: "Variable",
1373
- name: { kind: "Name", value: "data" }
1374
- }
1375
- }
1376
- ],
1377
- selectionSet: {
1378
- kind: "SelectionSet",
1379
- selections: [
1380
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
1381
- {
1382
- kind: "InlineFragment",
1383
- typeCondition: {
1384
- kind: "NamedType",
1385
- name: { kind: "Name", value: "Error" }
1386
- },
1387
- selectionSet: {
1388
- kind: "SelectionSet",
1389
- selections: [
1390
- {
1391
- kind: "Field",
1392
- name: { kind: "Name", value: "message" }
1393
- },
1394
- {
1395
- kind: "Field",
1396
- name: { kind: "Name", value: "statusCode" }
1397
- },
1398
- {
1399
- kind: "Field",
1400
- name: { kind: "Name", value: "timestamp" }
1401
- }
1402
- ]
1403
- }
1404
- },
1405
- {
1406
- kind: "InlineFragment",
1407
- typeCondition: {
1408
- kind: "NamedType",
1409
- name: { kind: "Name", value: "ErrorGeneral" }
1410
- },
1411
- selectionSet: {
1412
- kind: "SelectionSet",
1413
- selections: [
1414
- {
1415
- kind: "Field",
1416
- name: { kind: "Name", value: "message" }
1417
- },
1418
- {
1419
- kind: "Field",
1420
- name: { kind: "Name", value: "statusCode" }
1421
- },
1422
- {
1423
- kind: "Field",
1424
- name: { kind: "Name", value: "timestamp" }
1425
- }
1426
- ]
1427
- }
1428
- }
1429
- ]
1430
- }
1431
- }
1432
- ]
1433
- }
1434
- }
1435
- ]
1436
- }, Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1437
- __proto__: null,
1438
- AddCollectionDocument: ie,
1439
- DeleteAllCustomizationDocument: K,
1440
- DeleteCollectionDocument: ae,
1441
- FindCollectionDocument: te,
1442
- GetAllCollectionsDocument: de,
1443
- GetAllCustomizationDocument: ee,
1444
- ManageCollectionProductDocument: le,
1445
- Methods: A,
1446
- SearchCollectionsDocument: oe,
1447
- Status: j,
1448
- UpdateCollectionDocument: re,
1449
- UpdateCustomizationDocument: ne
1450
- }, Symbol.toStringTag, { value: "Module" }));
1451
- class De {
1452
- }
1453
- async function Oe({
1454
- url: n,
1455
- method: e = "GET",
1456
- raw: i = !1,
1457
- ...a
1458
- }) {
1459
- const t = {
1460
- "Content-Type": "application/json",
1461
- ...a.headers
1462
- }, l = await fetch(n, { method: e, ...a, headers: t });
1463
- if (i)
1464
- return l;
1465
- const d = await l.json();
1466
- if (!l.ok) {
1467
- const o = (d == null ? void 0 : d.message) ?? l.statusText;
1468
- throw new Error(o);
1469
- }
1470
- return d;
1471
- }
1472
- class h {
1473
- constructor() {
1474
- m(this, "store");
1475
- this.store = this.getStoreFromWindow();
1476
- }
1477
- getStoreFromWindow() {
1478
- let e = {};
1479
- try {
1480
- e = JSON.parse(window.self.name);
1481
- } catch {
1482
- return {};
1483
- }
1484
- return e && typeof e == "object" ? e : {};
1485
- }
1486
- setStoreToWindow(e) {
1487
- const i = JSON.stringify(e);
1488
- window.self.name = i;
1489
- }
1490
- setItem(e, i) {
1491
- this.store[e] = i, this.setStoreToWindow(this.store);
1492
- }
1493
- getItem(e) {
1494
- return this.store[e] ?? null;
1495
- }
1496
- removeItem(e) {
1497
- delete this.store[e], this.setStoreToWindow(this.store);
1498
- }
1499
- clear() {
1500
- this.setStoreToWindow({});
1501
- }
1502
- key(e) {
1503
- return Object.keys(this.store)[e] ?? null;
1504
- }
1505
- get length() {
1506
- return Object.keys(this.store).length;
1507
- }
1508
- }
1509
- function w(n) {
1510
- try {
1511
- const e = window[n], i = "__custom-storage__";
1512
- return e.setItem(i, i), e.removeItem(i), !0;
1513
- } catch {
1514
- return !1;
1515
- }
1516
- }
1517
- function T(n, e, i) {
1518
- const a = {
1519
- configurable: !1,
1520
- enumerable: !1,
1521
- writable: !1
1522
- };
1523
- typeof i < "u" && (a.value = i), Object.defineProperty(n, e, a);
1524
- }
1525
- class x {
1526
- static init() {
1527
- return new x();
1528
- }
1529
- constructor() {
1530
- window.top === window.self ? console.log("[CustomStorage] This is the main window") : console.log("[CustomStorage] This is NOT the main window"), this.replaceStorages();
1531
- }
1532
- replaceStorages() {
1533
- if (!this.isAvailable.localStorage) {
1534
- const e = new h();
1535
- T(window, "localStorage", e), console.log(
1536
- "[CustomStorage] LocalStorage is not available, custom implementation is defined"
1537
- );
1538
- }
1539
- if (!this.isAvailable.sessionStorage) {
1540
- const e = new h();
1541
- T(window, "sessionStorage", e), console.log(
1542
- "[CustomStorage] SessionStorage is not available, custom implementation is defined"
1543
- );
1544
- }
1545
- }
1546
- get isAvailable() {
1547
- return {
1548
- localStorage: w("localStorage"),
1549
- sessionStorage: w("sessionStorage")
1550
- };
1551
- }
1552
- }
1553
- /*! js-cookie v3.0.1 | MIT */
1554
- function c(n) {
1555
- for (var e = 1; e < arguments.length; e++) {
1556
- var i = arguments[e];
1557
- for (var a in i)
1558
- n[a] = i[a];
1559
- }
1560
- return n;
1561
- }
1562
- var me = {
1563
- read: function(n) {
1564
- return n[0] === '"' && (n = n.slice(1, -1)), n.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1565
- },
1566
- write: function(n) {
1567
- return encodeURIComponent(n).replace(
1568
- /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
1569
- decodeURIComponent
1570
- );
1571
- }
1572
- };
1573
- function g(n, e) {
1574
- function i(t, l, d) {
1575
- if (!(typeof document > "u")) {
1576
- d = c({}, e, d), typeof d.expires == "number" && (d.expires = new Date(Date.now() + d.expires * 864e5)), d.expires && (d.expires = d.expires.toUTCString()), t = encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
1577
- var o = "";
1578
- for (var s in d)
1579
- d[s] && (o += "; " + s, d[s] !== !0 && (o += "=" + d[s].split(";")[0]));
1580
- return document.cookie = t + "=" + n.write(l, t) + o;
1581
- }
1582
- }
1583
- function a(t) {
1584
- if (!(typeof document > "u" || arguments.length && !t)) {
1585
- for (var l = document.cookie ? document.cookie.split("; ") : [], d = {}, o = 0; o < l.length; o++) {
1586
- var s = l[o].split("="), P = s.slice(1).join("=");
1587
- try {
1588
- var N = decodeURIComponent(s[0]);
1589
- if (d[N] = n.read(P, N), t === N)
1590
- break;
1591
- } catch {
1592
- }
1593
- }
1594
- return t ? d[t] : d;
1595
- }
1596
- }
1597
- return Object.create(
1598
- {
1599
- set: i,
1600
- get: a,
1601
- remove: function(t, l) {
1602
- i(
1603
- t,
1604
- "",
1605
- c({}, l, {
1606
- expires: -1
1607
- })
1608
- );
1609
- },
1610
- withAttributes: function(t) {
1611
- return g(this.converter, c({}, this.attributes, t));
1612
- },
1613
- withConverter: function(t) {
1614
- return g(c({}, this.converter, t), this.attributes);
1615
- }
1616
- },
1617
- {
1618
- attributes: { value: Object.freeze(e) },
1619
- converter: { value: Object.freeze(n) }
1620
- }
1621
- );
1622
- }
1623
- var E = g(me, { path: "/" }), v, se = new Uint8Array(16);
1624
- function ue() {
1625
- if (!v && (v = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !v))
1626
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1627
- return v(se);
1628
- }
1629
- const ke = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
1630
- function ce(n) {
1631
- return typeof n == "string" && ke.test(n);
1632
- }
1633
- var r = [];
1634
- for (var S = 0; S < 256; ++S)
1635
- r.push((S + 256).toString(16).substr(1));
1636
- function ve(n) {
1637
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, i = (r[n[e + 0]] + r[n[e + 1]] + r[n[e + 2]] + r[n[e + 3]] + "-" + r[n[e + 4]] + r[n[e + 5]] + "-" + r[n[e + 6]] + r[n[e + 7]] + "-" + r[n[e + 8]] + r[n[e + 9]] + "-" + r[n[e + 10]] + r[n[e + 11]] + r[n[e + 12]] + r[n[e + 13]] + r[n[e + 14]] + r[n[e + 15]]).toLowerCase();
1638
- if (!ce(i))
1639
- throw TypeError("Stringified UUID is invalid");
1640
- return i;
1641
- }
1642
- function pe(n, e, i) {
1643
- n = n || {};
1644
- var a = n.random || (n.rng || ue)();
1645
- if (a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, e) {
1646
- i = i || 0;
1647
- for (var t = 0; t < 16; ++t)
1648
- e[i + t] = a[t];
1649
- return e;
1650
- }
1651
- return ve(a);
1652
- }
1653
- const I = "FINGERPRINT_LIVE_SHOPPING", _e = () => {
1654
- let n = E.get(I);
1655
- return n || (n = pe(), E.set(I, n, { expires: 1 }), n);
1656
- };
1657
- function Ae(n = 8) {
1658
- const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
1659
- let i = "";
1660
- const a = e.length;
1661
- for (let t = 0; t < n; t++)
1662
- i += e.charAt(Math.floor(Math.random() * a));
1663
- return i;
1664
- }
1665
- function je(n) {
1666
- return new q(n);
1667
- }
1668
- const xe = (n) => {
1669
- const e = Object.entries(n).map(([i, a]) => `${i}=${a}`).join("&");
1670
- return e ? `?${e}` : "";
1671
- }, Pe = (n, e, i = { fallback: null }) => {
1672
- let a = n;
1673
- e && (a = () => n().then((l) => ({ default: e(l) })));
1674
- const t = L(a);
1675
- return (l) => /* @__PURE__ */ u.jsx(M, { fallback: i.fallback, children: /* @__PURE__ */ u.jsx(t, { ...l }) });
1676
- };
1677
- class p {
1678
- constructor(e, i, a) {
1679
- m(this, "isOk");
1680
- m(this, "isErr");
1681
- m(this, "error");
1682
- m(this, "_value");
1683
- if (e && i)
1684
- throw new Error(
1685
- "InvalidOperation: A result cannot be successful and contain an error"
1686
- );
1687
- if (!e && !i)
1688
- throw new Error(
1689
- "InvalidOperation: A failing result needs to contain an error message"
1690
- );
1691
- this.isOk = e, this.isErr = !e, this.error = i, this._value = a, Object.freeze(this);
1692
- }
1693
- get value() {
1694
- if (this.isErr)
1695
- throw new Error(
1696
- "Can't get the value of an error result. Use 'errorValue' instead."
1697
- );
1698
- return this._value;
1699
- }
1700
- static ok(e) {
1701
- return new p(!0, void 0, e);
1702
- }
1703
- static fail(e) {
1704
- return new p(!1, e);
1705
- }
1706
- static combine(e) {
1707
- for (const i of e)
1708
- if (i.isErr)
1709
- return i;
1710
- return p.ok();
1711
- }
1712
- }
1713
- class Ne {
1714
- constructor(e) {
1715
- m(this, "value");
1716
- this.value = e;
1717
- }
1718
- isErr() {
1719
- return !0;
1720
- }
1721
- isOk() {
1722
- return !1;
1723
- }
1724
- }
1725
- class Se {
1726
- constructor(e) {
1727
- m(this, "value");
1728
- this.value = e;
1729
- }
1730
- isErr() {
1731
- return !1;
1732
- }
1733
- isOk() {
1734
- return !0;
1735
- }
1736
- }
1737
- const Re = (n) => new Ne(n), Ve = (n) => new Se(n);
1738
- export {
1739
- he as AccountInvalidError,
1740
- q as AggregateRoot,
1741
- Ie as ApiGraphqlTypes,
1742
- Fe as BaseMobxStore,
1743
- De as BaseStore,
1744
- x as CustomStorage,
1745
- y as DomainError,
1746
- Ne as Err,
1747
- Se as Ok,
1748
- Ce as ResourceNotFoundError,
1749
- p as Result,
1750
- we as StoreProvider,
1751
- be as UnexpectedError,
1752
- Oe as apiCall,
1753
- je as createAggregateRoot,
1754
- Ve as err,
1755
- _e as getFingerprint,
1756
- Ee as getStore,
1757
- Pe as lazyLoad,
1758
- Re as ok,
1759
- xe as searchParams,
1760
- Ae as shortId,
1761
- Te as useStore
1762
- };