@airsoko/auth 0.0.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 (91) hide show
  1. package/dist/__generated__/globalTypes.d.ts +590 -0
  2. package/dist/__generated__/globalTypes.d.ts.map +1 -0
  3. package/dist/__generated__/globalTypes.js +607 -0
  4. package/dist/src/constants/endpoints.d.ts +5 -0
  5. package/dist/src/constants/endpoints.d.ts.map +1 -0
  6. package/dist/src/constants/endpoints.js +7 -0
  7. package/dist/src/constants/index.d.ts +6 -0
  8. package/dist/src/constants/index.d.ts.map +1 -0
  9. package/dist/src/constants/index.js +8 -0
  10. package/dist/src/core/AuthContext.d.ts +5 -0
  11. package/dist/src/core/AuthContext.d.ts.map +1 -0
  12. package/dist/src/core/AuthContext.js +10 -0
  13. package/dist/src/core/client.d.ts +108 -0
  14. package/dist/src/core/client.d.ts.map +1 -0
  15. package/dist/src/core/client.js +256 -0
  16. package/dist/src/core/old/SampleAuthProvider.d.ts +37 -0
  17. package/dist/src/core/old/SampleAuthProvider.d.ts.map +1 -0
  18. package/dist/src/core/old/SampleAuthProvider.js +123 -0
  19. package/dist/src/core/user/context.d.ts +56 -0
  20. package/dist/src/core/user/context.d.ts.map +1 -0
  21. package/dist/src/core/user/context.js +46 -0
  22. package/dist/src/core/user/hooks.d.ts +2 -0
  23. package/dist/src/core/user/hooks.d.ts.map +1 -0
  24. package/dist/src/core/user/hooks.js +5 -0
  25. package/dist/src/core/user/index.d.ts +4 -0
  26. package/dist/src/core/user/index.d.ts.map +1 -0
  27. package/dist/src/core/user/index.js +9 -0
  28. package/dist/src/core/user/provider.d.ts +19 -0
  29. package/dist/src/core/user/provider.d.ts.map +1 -0
  30. package/dist/src/core/user/provider.js +71 -0
  31. package/dist/src/data/checkDeviceSatus.d.ts +5 -0
  32. package/dist/src/data/checkDeviceSatus.d.ts.map +1 -0
  33. package/dist/src/data/checkDeviceSatus.js +58 -0
  34. package/dist/src/data/getMerchantUser.d.ts +3 -0
  35. package/dist/src/data/getMerchantUser.d.ts.map +1 -0
  36. package/dist/src/data/getMerchantUser.js +20 -0
  37. package/dist/src/data/getRegularUser.d.ts +3 -0
  38. package/dist/src/data/getRegularUser.d.ts.map +1 -0
  39. package/dist/src/data/getRegularUser.js +20 -0
  40. package/dist/src/graphql/__generated__/Logout.d.ts +4 -0
  41. package/dist/src/graphql/__generated__/Logout.d.ts.map +1 -0
  42. package/dist/src/graphql/__generated__/Logout.js +6 -0
  43. package/dist/src/graphql/__generated__/onboarding.d.ts +29 -0
  44. package/dist/src/graphql/__generated__/onboarding.d.ts.map +1 -0
  45. package/dist/src/graphql/__generated__/onboarding.js +6 -0
  46. package/dist/src/graphql/__generated__/onboardingShop.d.ts +66 -0
  47. package/dist/src/graphql/__generated__/onboardingShop.d.ts.map +1 -0
  48. package/dist/src/graphql/__generated__/onboardingShop.js +6 -0
  49. package/dist/src/graphql/queries.d.ts +10 -0
  50. package/dist/src/graphql/queries.d.ts.map +1 -0
  51. package/dist/src/graphql/queries.js +68 -0
  52. package/dist/src/graphql/typings.d.ts +66 -0
  53. package/dist/src/graphql/typings.d.ts.map +1 -0
  54. package/dist/src/graphql/typings.js +2 -0
  55. package/dist/src/index.d.ts +5 -0
  56. package/dist/src/index.d.ts.map +1 -0
  57. package/dist/src/index.js +25 -0
  58. package/dist/src/utils/currentPageHasParam.d.ts +13 -0
  59. package/dist/src/utils/currentPageHasParam.d.ts.map +1 -0
  60. package/dist/src/utils/currentPageHasParam.js +23 -0
  61. package/dist/src/utils/getCookie.d.ts +7 -0
  62. package/dist/src/utils/getCookie.d.ts.map +1 -0
  63. package/dist/src/utils/getCookie.js +19 -0
  64. package/dist/src/utils/getMainDomain.d.ts +45 -0
  65. package/dist/src/utils/getMainDomain.d.ts.map +1 -0
  66. package/dist/src/utils/getMainDomain.js +73 -0
  67. package/dist/src/utils/getProtocol.d.ts +8 -0
  68. package/dist/src/utils/getProtocol.d.ts.map +1 -0
  69. package/dist/src/utils/getProtocol.js +13 -0
  70. package/dist/src/utils/getURL.d.ts +26 -0
  71. package/dist/src/utils/getURL.d.ts.map +1 -0
  72. package/dist/src/utils/getURL.js +56 -0
  73. package/dist/src/utils/index.d.ts +8 -0
  74. package/dist/src/utils/index.d.ts.map +1 -0
  75. package/dist/src/utils/index.js +17 -0
  76. package/dist/src/utils/jwt/decode.d.ts +3 -0
  77. package/dist/src/utils/jwt/decode.d.ts.map +1 -0
  78. package/dist/src/utils/jwt/decode.js +32 -0
  79. package/dist/src/utils/jwt/encode.d.ts +3 -0
  80. package/dist/src/utils/jwt/encode.d.ts.map +1 -0
  81. package/dist/src/utils/jwt/encode.js +25 -0
  82. package/dist/src/utils/jwt/index.d.ts +3 -0
  83. package/dist/src/utils/jwt/index.d.ts.map +1 -0
  84. package/dist/src/utils/jwt/index.js +7 -0
  85. package/dist/src/utils/redirectToPathWithParams.d.ts +9 -0
  86. package/dist/src/utils/redirectToPathWithParams.d.ts.map +1 -0
  87. package/dist/src/utils/redirectToPathWithParams.js +22 -0
  88. package/dist/src/utils/setSharedCookie.d.ts +8 -0
  89. package/dist/src/utils/setSharedCookie.d.ts.map +1 -0
  90. package/dist/src/utils/setSharedCookie.js +21 -0
  91. package/package.json +35 -0
@@ -0,0 +1,607 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ // @generated
5
+ // This file was automatically generated and should not be edited.
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.StaffPermissionLevel = exports.ShopStatus = exports.PermissionType = exports.CurrencyCode = exports.CountryCode = void 0;
8
+ //==============================================================
9
+ // START Enums and Input Objects
10
+ //==============================================================
11
+ /**
12
+ * Country code
13
+ */
14
+ var CountryCode;
15
+ (function (CountryCode) {
16
+ CountryCode["AD"] = "AD";
17
+ CountryCode["AE"] = "AE";
18
+ CountryCode["AF"] = "AF";
19
+ CountryCode["AG"] = "AG";
20
+ CountryCode["AI"] = "AI";
21
+ CountryCode["AL"] = "AL";
22
+ CountryCode["AM"] = "AM";
23
+ CountryCode["AN"] = "AN";
24
+ CountryCode["AO"] = "AO";
25
+ CountryCode["AQ"] = "AQ";
26
+ CountryCode["AR"] = "AR";
27
+ CountryCode["AT"] = "AT";
28
+ CountryCode["AU"] = "AU";
29
+ CountryCode["AW"] = "AW";
30
+ CountryCode["AZ"] = "AZ";
31
+ CountryCode["BA"] = "BA";
32
+ CountryCode["BB"] = "BB";
33
+ CountryCode["BD"] = "BD";
34
+ CountryCode["BE"] = "BE";
35
+ CountryCode["BF"] = "BF";
36
+ CountryCode["BG"] = "BG";
37
+ CountryCode["BH"] = "BH";
38
+ CountryCode["BI"] = "BI";
39
+ CountryCode["BJ"] = "BJ";
40
+ CountryCode["BM"] = "BM";
41
+ CountryCode["BN"] = "BN";
42
+ CountryCode["BO"] = "BO";
43
+ CountryCode["BR"] = "BR";
44
+ CountryCode["BS"] = "BS";
45
+ CountryCode["BT"] = "BT";
46
+ CountryCode["BV"] = "BV";
47
+ CountryCode["BW"] = "BW";
48
+ CountryCode["BY"] = "BY";
49
+ CountryCode["BZ"] = "BZ";
50
+ CountryCode["CA"] = "CA";
51
+ CountryCode["CC"] = "CC";
52
+ CountryCode["CD"] = "CD";
53
+ CountryCode["CF"] = "CF";
54
+ CountryCode["CG"] = "CG";
55
+ CountryCode["CH"] = "CH";
56
+ CountryCode["CI"] = "CI";
57
+ CountryCode["CK"] = "CK";
58
+ CountryCode["CL"] = "CL";
59
+ CountryCode["CM"] = "CM";
60
+ CountryCode["CN"] = "CN";
61
+ CountryCode["CO"] = "CO";
62
+ CountryCode["CR"] = "CR";
63
+ CountryCode["CS"] = "CS";
64
+ CountryCode["CU"] = "CU";
65
+ CountryCode["CV"] = "CV";
66
+ CountryCode["CX"] = "CX";
67
+ CountryCode["CY"] = "CY";
68
+ CountryCode["CZ"] = "CZ";
69
+ CountryCode["DE"] = "DE";
70
+ CountryCode["DJ"] = "DJ";
71
+ CountryCode["DK"] = "DK";
72
+ CountryCode["DM"] = "DM";
73
+ CountryCode["DZ"] = "DZ";
74
+ CountryCode["EC"] = "EC";
75
+ CountryCode["EE"] = "EE";
76
+ CountryCode["EG"] = "EG";
77
+ CountryCode["EH"] = "EH";
78
+ CountryCode["ER"] = "ER";
79
+ CountryCode["ES"] = "ES";
80
+ CountryCode["ET"] = "ET";
81
+ CountryCode["FI"] = "FI";
82
+ CountryCode["FJ"] = "FJ";
83
+ CountryCode["FK"] = "FK";
84
+ CountryCode["FM"] = "FM";
85
+ CountryCode["FO"] = "FO";
86
+ CountryCode["FR"] = "FR";
87
+ CountryCode["GA"] = "GA";
88
+ CountryCode["GB"] = "GB";
89
+ CountryCode["GD"] = "GD";
90
+ CountryCode["GE"] = "GE";
91
+ CountryCode["GF"] = "GF";
92
+ CountryCode["GH"] = "GH";
93
+ CountryCode["GI"] = "GI";
94
+ CountryCode["GL"] = "GL";
95
+ CountryCode["GM"] = "GM";
96
+ CountryCode["GN"] = "GN";
97
+ CountryCode["GP"] = "GP";
98
+ CountryCode["GQ"] = "GQ";
99
+ CountryCode["GR"] = "GR";
100
+ CountryCode["GS"] = "GS";
101
+ CountryCode["GT"] = "GT";
102
+ CountryCode["GU"] = "GU";
103
+ CountryCode["GW"] = "GW";
104
+ CountryCode["GY"] = "GY";
105
+ CountryCode["HK"] = "HK";
106
+ CountryCode["HM"] = "HM";
107
+ CountryCode["HN"] = "HN";
108
+ CountryCode["HR"] = "HR";
109
+ CountryCode["HT"] = "HT";
110
+ CountryCode["HU"] = "HU";
111
+ CountryCode["ID"] = "ID";
112
+ CountryCode["IE"] = "IE";
113
+ CountryCode["IL"] = "IL";
114
+ CountryCode["IN"] = "IN";
115
+ CountryCode["IO"] = "IO";
116
+ CountryCode["IQ"] = "IQ";
117
+ CountryCode["IR"] = "IR";
118
+ CountryCode["IS"] = "IS";
119
+ CountryCode["IT"] = "IT";
120
+ CountryCode["JM"] = "JM";
121
+ CountryCode["JO"] = "JO";
122
+ CountryCode["JP"] = "JP";
123
+ CountryCode["KE"] = "KE";
124
+ CountryCode["KG"] = "KG";
125
+ CountryCode["KH"] = "KH";
126
+ CountryCode["KI"] = "KI";
127
+ CountryCode["KM"] = "KM";
128
+ CountryCode["KN"] = "KN";
129
+ CountryCode["KP"] = "KP";
130
+ CountryCode["KR"] = "KR";
131
+ CountryCode["KW"] = "KW";
132
+ CountryCode["KY"] = "KY";
133
+ CountryCode["KZ"] = "KZ";
134
+ CountryCode["LA"] = "LA";
135
+ CountryCode["LB"] = "LB";
136
+ CountryCode["LC"] = "LC";
137
+ CountryCode["LI"] = "LI";
138
+ CountryCode["LK"] = "LK";
139
+ CountryCode["LR"] = "LR";
140
+ CountryCode["LS"] = "LS";
141
+ CountryCode["LT"] = "LT";
142
+ CountryCode["LU"] = "LU";
143
+ CountryCode["LV"] = "LV";
144
+ CountryCode["LY"] = "LY";
145
+ CountryCode["MA"] = "MA";
146
+ CountryCode["MC"] = "MC";
147
+ CountryCode["MD"] = "MD";
148
+ CountryCode["MG"] = "MG";
149
+ CountryCode["MH"] = "MH";
150
+ CountryCode["MK"] = "MK";
151
+ CountryCode["ML"] = "ML";
152
+ CountryCode["MM"] = "MM";
153
+ CountryCode["MN"] = "MN";
154
+ CountryCode["MO"] = "MO";
155
+ CountryCode["MQ"] = "MQ";
156
+ CountryCode["MR"] = "MR";
157
+ CountryCode["MS"] = "MS";
158
+ CountryCode["MT"] = "MT";
159
+ CountryCode["MU"] = "MU";
160
+ CountryCode["MV"] = "MV";
161
+ CountryCode["MW"] = "MW";
162
+ CountryCode["MX"] = "MX";
163
+ CountryCode["MY"] = "MY";
164
+ CountryCode["MZ"] = "MZ";
165
+ CountryCode["NA"] = "NA";
166
+ CountryCode["NC"] = "NC";
167
+ CountryCode["NE"] = "NE";
168
+ CountryCode["NF"] = "NF";
169
+ CountryCode["NG"] = "NG";
170
+ CountryCode["NI"] = "NI";
171
+ CountryCode["NL"] = "NL";
172
+ CountryCode["NO"] = "NO";
173
+ CountryCode["NP"] = "NP";
174
+ CountryCode["NR"] = "NR";
175
+ CountryCode["NU"] = "NU";
176
+ CountryCode["NZ"] = "NZ";
177
+ CountryCode["OM"] = "OM";
178
+ CountryCode["PA"] = "PA";
179
+ CountryCode["PE"] = "PE";
180
+ CountryCode["PF"] = "PF";
181
+ CountryCode["PG"] = "PG";
182
+ CountryCode["PH"] = "PH";
183
+ CountryCode["PK"] = "PK";
184
+ CountryCode["PL"] = "PL";
185
+ CountryCode["PM"] = "PM";
186
+ CountryCode["PN"] = "PN";
187
+ CountryCode["PR"] = "PR";
188
+ CountryCode["PS"] = "PS";
189
+ CountryCode["PT"] = "PT";
190
+ CountryCode["PW"] = "PW";
191
+ CountryCode["PY"] = "PY";
192
+ CountryCode["QA"] = "QA";
193
+ CountryCode["RE"] = "RE";
194
+ CountryCode["RO"] = "RO";
195
+ CountryCode["RU"] = "RU";
196
+ CountryCode["RW"] = "RW";
197
+ CountryCode["SA"] = "SA";
198
+ CountryCode["SB"] = "SB";
199
+ CountryCode["SC"] = "SC";
200
+ CountryCode["SD"] = "SD";
201
+ CountryCode["SE"] = "SE";
202
+ CountryCode["SG"] = "SG";
203
+ CountryCode["SH"] = "SH";
204
+ CountryCode["SI"] = "SI";
205
+ CountryCode["SJ"] = "SJ";
206
+ CountryCode["SK"] = "SK";
207
+ CountryCode["SL"] = "SL";
208
+ CountryCode["SM"] = "SM";
209
+ CountryCode["SN"] = "SN";
210
+ CountryCode["SO"] = "SO";
211
+ CountryCode["SR"] = "SR";
212
+ CountryCode["SS"] = "SS";
213
+ CountryCode["ST"] = "ST";
214
+ CountryCode["SV"] = "SV";
215
+ CountryCode["SY"] = "SY";
216
+ CountryCode["SZ"] = "SZ";
217
+ CountryCode["TC"] = "TC";
218
+ CountryCode["TD"] = "TD";
219
+ CountryCode["TF"] = "TF";
220
+ CountryCode["TG"] = "TG";
221
+ CountryCode["TH"] = "TH";
222
+ CountryCode["TJ"] = "TJ";
223
+ CountryCode["TK"] = "TK";
224
+ CountryCode["TL"] = "TL";
225
+ CountryCode["TM"] = "TM";
226
+ CountryCode["TN"] = "TN";
227
+ CountryCode["TO"] = "TO";
228
+ CountryCode["TR"] = "TR";
229
+ CountryCode["TT"] = "TT";
230
+ CountryCode["TV"] = "TV";
231
+ CountryCode["TW"] = "TW";
232
+ CountryCode["TZ"] = "TZ";
233
+ CountryCode["UA"] = "UA";
234
+ CountryCode["UG"] = "UG";
235
+ CountryCode["UM"] = "UM";
236
+ CountryCode["US"] = "US";
237
+ CountryCode["UY"] = "UY";
238
+ CountryCode["UZ"] = "UZ";
239
+ CountryCode["VA"] = "VA";
240
+ CountryCode["VC"] = "VC";
241
+ CountryCode["VE"] = "VE";
242
+ CountryCode["VG"] = "VG";
243
+ CountryCode["VI"] = "VI";
244
+ CountryCode["VN"] = "VN";
245
+ CountryCode["VU"] = "VU";
246
+ CountryCode["WF"] = "WF";
247
+ CountryCode["WS"] = "WS";
248
+ CountryCode["YE"] = "YE";
249
+ CountryCode["YT"] = "YT";
250
+ CountryCode["ZA"] = "ZA";
251
+ CountryCode["ZM"] = "ZM";
252
+ CountryCode["ZW"] = "ZW";
253
+ CountryCode["as"] = "as";
254
+ })(CountryCode || (exports.CountryCode = CountryCode = {}));
255
+ /**
256
+ * Currency code
257
+ */
258
+ var CurrencyCode;
259
+ (function (CurrencyCode) {
260
+ CurrencyCode["AED"] = "AED";
261
+ CurrencyCode["AFN"] = "AFN";
262
+ CurrencyCode["ALL"] = "ALL";
263
+ CurrencyCode["AMD"] = "AMD";
264
+ CurrencyCode["ANG"] = "ANG";
265
+ CurrencyCode["AOA"] = "AOA";
266
+ CurrencyCode["ARS"] = "ARS";
267
+ CurrencyCode["AUD"] = "AUD";
268
+ CurrencyCode["AWG"] = "AWG";
269
+ CurrencyCode["AZN"] = "AZN";
270
+ CurrencyCode["BAM"] = "BAM";
271
+ CurrencyCode["BBD"] = "BBD";
272
+ CurrencyCode["BDT"] = "BDT";
273
+ CurrencyCode["BGN"] = "BGN";
274
+ CurrencyCode["BHD"] = "BHD";
275
+ CurrencyCode["BIF"] = "BIF";
276
+ CurrencyCode["BMD"] = "BMD";
277
+ CurrencyCode["BND"] = "BND";
278
+ CurrencyCode["BOB"] = "BOB";
279
+ CurrencyCode["BRL"] = "BRL";
280
+ CurrencyCode["BSD"] = "BSD";
281
+ CurrencyCode["BTN"] = "BTN";
282
+ CurrencyCode["BWP"] = "BWP";
283
+ CurrencyCode["BYN"] = "BYN";
284
+ CurrencyCode["BZD"] = "BZD";
285
+ CurrencyCode["CAD"] = "CAD";
286
+ CurrencyCode["CDF"] = "CDF";
287
+ CurrencyCode["CHF"] = "CHF";
288
+ CurrencyCode["CLP"] = "CLP";
289
+ CurrencyCode["CNY"] = "CNY";
290
+ CurrencyCode["COP"] = "COP";
291
+ CurrencyCode["CRC"] = "CRC";
292
+ CurrencyCode["CUC"] = "CUC";
293
+ CurrencyCode["CUP"] = "CUP";
294
+ CurrencyCode["CVE"] = "CVE";
295
+ CurrencyCode["CZK"] = "CZK";
296
+ CurrencyCode["DJF"] = "DJF";
297
+ CurrencyCode["DKK"] = "DKK";
298
+ CurrencyCode["DOP"] = "DOP";
299
+ CurrencyCode["DZD"] = "DZD";
300
+ CurrencyCode["EGP"] = "EGP";
301
+ CurrencyCode["ERN"] = "ERN";
302
+ CurrencyCode["ETB"] = "ETB";
303
+ CurrencyCode["EUR"] = "EUR";
304
+ CurrencyCode["FJD"] = "FJD";
305
+ CurrencyCode["FKP"] = "FKP";
306
+ CurrencyCode["GBP"] = "GBP";
307
+ CurrencyCode["GEL"] = "GEL";
308
+ CurrencyCode["GHS"] = "GHS";
309
+ CurrencyCode["GIP"] = "GIP";
310
+ CurrencyCode["GMD"] = "GMD";
311
+ CurrencyCode["GNF"] = "GNF";
312
+ CurrencyCode["GTQ"] = "GTQ";
313
+ CurrencyCode["GYD"] = "GYD";
314
+ CurrencyCode["HKD"] = "HKD";
315
+ CurrencyCode["HNL"] = "HNL";
316
+ CurrencyCode["HRK"] = "HRK";
317
+ CurrencyCode["HTG"] = "HTG";
318
+ CurrencyCode["HUF"] = "HUF";
319
+ CurrencyCode["IDR"] = "IDR";
320
+ CurrencyCode["ILS"] = "ILS";
321
+ CurrencyCode["INR"] = "INR";
322
+ CurrencyCode["IQD"] = "IQD";
323
+ CurrencyCode["IRR"] = "IRR";
324
+ CurrencyCode["ISK"] = "ISK";
325
+ CurrencyCode["JMD"] = "JMD";
326
+ CurrencyCode["JOD"] = "JOD";
327
+ CurrencyCode["JPY"] = "JPY";
328
+ CurrencyCode["KES"] = "KES";
329
+ CurrencyCode["KGS"] = "KGS";
330
+ CurrencyCode["KHR"] = "KHR";
331
+ CurrencyCode["KMF"] = "KMF";
332
+ CurrencyCode["KPW"] = "KPW";
333
+ CurrencyCode["KRW"] = "KRW";
334
+ CurrencyCode["KWD"] = "KWD";
335
+ CurrencyCode["KYD"] = "KYD";
336
+ CurrencyCode["KZT"] = "KZT";
337
+ CurrencyCode["LAK"] = "LAK";
338
+ CurrencyCode["LBP"] = "LBP";
339
+ CurrencyCode["LKR"] = "LKR";
340
+ CurrencyCode["LRD"] = "LRD";
341
+ CurrencyCode["LSL"] = "LSL";
342
+ CurrencyCode["LYD"] = "LYD";
343
+ CurrencyCode["MAD"] = "MAD";
344
+ CurrencyCode["MDL"] = "MDL";
345
+ CurrencyCode["MGA"] = "MGA";
346
+ CurrencyCode["MKD"] = "MKD";
347
+ CurrencyCode["MMK"] = "MMK";
348
+ CurrencyCode["MNT"] = "MNT";
349
+ CurrencyCode["MOP"] = "MOP";
350
+ CurrencyCode["MRU"] = "MRU";
351
+ CurrencyCode["MUR"] = "MUR";
352
+ CurrencyCode["MVR"] = "MVR";
353
+ CurrencyCode["MWK"] = "MWK";
354
+ CurrencyCode["MXN"] = "MXN";
355
+ CurrencyCode["MYR"] = "MYR";
356
+ CurrencyCode["MZN"] = "MZN";
357
+ CurrencyCode["NAD"] = "NAD";
358
+ CurrencyCode["NGN"] = "NGN";
359
+ CurrencyCode["NIO"] = "NIO";
360
+ CurrencyCode["NOK"] = "NOK";
361
+ CurrencyCode["NPR"] = "NPR";
362
+ CurrencyCode["NZD"] = "NZD";
363
+ CurrencyCode["OMR"] = "OMR";
364
+ CurrencyCode["PAB"] = "PAB";
365
+ CurrencyCode["PEN"] = "PEN";
366
+ CurrencyCode["PGK"] = "PGK";
367
+ CurrencyCode["PHP"] = "PHP";
368
+ CurrencyCode["PKR"] = "PKR";
369
+ CurrencyCode["PLN"] = "PLN";
370
+ CurrencyCode["PYG"] = "PYG";
371
+ CurrencyCode["QAR"] = "QAR";
372
+ CurrencyCode["RON"] = "RON";
373
+ CurrencyCode["RSD"] = "RSD";
374
+ CurrencyCode["RUB"] = "RUB";
375
+ CurrencyCode["RWF"] = "RWF";
376
+ CurrencyCode["SAR"] = "SAR";
377
+ CurrencyCode["SBD"] = "SBD";
378
+ CurrencyCode["SCR"] = "SCR";
379
+ CurrencyCode["SDG"] = "SDG";
380
+ CurrencyCode["SEK"] = "SEK";
381
+ CurrencyCode["SGD"] = "SGD";
382
+ CurrencyCode["SHP"] = "SHP";
383
+ CurrencyCode["SLL"] = "SLL";
384
+ CurrencyCode["SOS"] = "SOS";
385
+ CurrencyCode["SRD"] = "SRD";
386
+ CurrencyCode["SSP"] = "SSP";
387
+ CurrencyCode["STN"] = "STN";
388
+ CurrencyCode["SVC"] = "SVC";
389
+ CurrencyCode["SYP"] = "SYP";
390
+ CurrencyCode["SZL"] = "SZL";
391
+ CurrencyCode["THB"] = "THB";
392
+ CurrencyCode["TJS"] = "TJS";
393
+ CurrencyCode["TMT"] = "TMT";
394
+ CurrencyCode["TND"] = "TND";
395
+ CurrencyCode["TOP"] = "TOP";
396
+ CurrencyCode["TTD"] = "TTD";
397
+ CurrencyCode["TWD"] = "TWD";
398
+ CurrencyCode["TZS"] = "TZS";
399
+ CurrencyCode["UAH"] = "UAH";
400
+ CurrencyCode["UGX"] = "UGX";
401
+ CurrencyCode["USD"] = "USD";
402
+ CurrencyCode["UYU"] = "UYU";
403
+ CurrencyCode["UZS"] = "UZS";
404
+ CurrencyCode["VES"] = "VES";
405
+ CurrencyCode["VND"] = "VND";
406
+ CurrencyCode["VUV"] = "VUV";
407
+ CurrencyCode["WST"] = "WST";
408
+ CurrencyCode["XAF"] = "XAF";
409
+ CurrencyCode["XCD"] = "XCD";
410
+ CurrencyCode["XOF"] = "XOF";
411
+ CurrencyCode["XPF"] = "XPF";
412
+ CurrencyCode["YER"] = "YER";
413
+ CurrencyCode["ZAR"] = "ZAR";
414
+ CurrencyCode["ZMW"] = "ZMW";
415
+ CurrencyCode["ZWL"] = "ZWL";
416
+ CurrencyCode["try"] = "try";
417
+ })(CurrencyCode || (exports.CurrencyCode = CurrencyCode = {}));
418
+ /**
419
+ * Permission type
420
+ */
421
+ var PermissionType;
422
+ (function (PermissionType) {
423
+ PermissionType["ADDRESS_CREATE"] = "ADDRESS_CREATE";
424
+ PermissionType["ADDRESS_DELETE"] = "ADDRESS_DELETE";
425
+ PermissionType["ADDRESS_EDIT"] = "ADDRESS_EDIT";
426
+ PermissionType["ADDRESS_MANAGE"] = "ADDRESS_MANAGE";
427
+ PermissionType["ADDRESS_VIEW"] = "ADDRESS_VIEW";
428
+ PermissionType["AFFILIATE_CREATE"] = "AFFILIATE_CREATE";
429
+ PermissionType["AFFILIATE_DELETE"] = "AFFILIATE_DELETE";
430
+ PermissionType["AFFILIATE_EDIT"] = "AFFILIATE_EDIT";
431
+ PermissionType["AFFILIATE_MANAGE"] = "AFFILIATE_MANAGE";
432
+ PermissionType["AFFILIATE_VIEW"] = "AFFILIATE_VIEW";
433
+ PermissionType["APP"] = "APP";
434
+ PermissionType["APP_CREATE"] = "APP_CREATE";
435
+ PermissionType["APP_DELETE"] = "APP_DELETE";
436
+ PermissionType["APP_EDIT"] = "APP_EDIT";
437
+ PermissionType["APP_LIMITED"] = "APP_LIMITED";
438
+ PermissionType["ATTRIBUTE_CREATE"] = "ATTRIBUTE_CREATE";
439
+ PermissionType["ATTRIBUTE_DELETE"] = "ATTRIBUTE_DELETE";
440
+ PermissionType["ATTRIBUTE_EDIT"] = "ATTRIBUTE_EDIT";
441
+ PermissionType["ATTRIBUTE_MANAGE"] = "ATTRIBUTE_MANAGE";
442
+ PermissionType["ATTRIBUTE_VIEW"] = "ATTRIBUTE_VIEW";
443
+ PermissionType["BEACONS"] = "BEACONS";
444
+ PermissionType["BILLING_CHARGES"] = "BILLING_CHARGES";
445
+ PermissionType["BILLING_INVOICES_PAY"] = "BILLING_INVOICES_PAY";
446
+ PermissionType["BILLING_INVOICES_VIEW"] = "BILLING_INVOICES_VIEW";
447
+ PermissionType["BILLING_PAYMENT_METHODS_MANAGE"] = "BILLING_PAYMENT_METHODS_MANAGE";
448
+ PermissionType["BILLING_PAYMENT_METHODS_VIEW"] = "BILLING_PAYMENT_METHODS_VIEW";
449
+ PermissionType["BILLING_SETTINGS"] = "BILLING_SETTINGS";
450
+ PermissionType["BILLING_SUBSCRIPTIONS"] = "BILLING_SUBSCRIPTIONS";
451
+ PermissionType["BLOG_CREATE"] = "BLOG_CREATE";
452
+ PermissionType["BLOG_DELETE"] = "BLOG_DELETE";
453
+ PermissionType["BLOG_EDIT"] = "BLOG_EDIT";
454
+ PermissionType["BLOG_MANAGE"] = "BLOG_MANAGE";
455
+ PermissionType["BLOG_VIEW"] = "BLOG_VIEW";
456
+ PermissionType["BRAND"] = "BRAND";
457
+ PermissionType["BRAND_CREATE"] = "BRAND_CREATE";
458
+ PermissionType["BRAND_DELETE"] = "BRAND_DELETE";
459
+ PermissionType["BRAND_EDIT"] = "BRAND_EDIT";
460
+ PermissionType["BRAND_VIEW"] = "BRAND_VIEW";
461
+ PermissionType["CART"] = "CART";
462
+ PermissionType["CART_CREATE"] = "CART_CREATE";
463
+ PermissionType["CART_DELETE"] = "CART_DELETE";
464
+ PermissionType["CART_EDIT"] = "CART_EDIT";
465
+ PermissionType["CART_VIEW"] = "CART_VIEW";
466
+ PermissionType["CATEGORY"] = "CATEGORY";
467
+ PermissionType["CATEGORY_CREATE"] = "CATEGORY_CREATE";
468
+ PermissionType["CATEGORY_DELETE"] = "CATEGORY_DELETE";
469
+ PermissionType["CATEGORY_EDIT"] = "CATEGORY_EDIT";
470
+ PermissionType["CATEGORY_VIEW"] = "CATEGORY_VIEW";
471
+ PermissionType["COLLABORATOR_REQUEST_MANAGEMENT"] = "COLLABORATOR_REQUEST_MANAGEMENT";
472
+ PermissionType["COLLABORATOR_REQUEST_SETTINGS"] = "COLLABORATOR_REQUEST_SETTINGS";
473
+ PermissionType["COLOR"] = "COLOR";
474
+ PermissionType["COLOR_CREATE"] = "COLOR_CREATE";
475
+ PermissionType["COLOR_DELETE"] = "COLOR_DELETE";
476
+ PermissionType["COLOR_EDIT"] = "COLOR_EDIT";
477
+ PermissionType["COLOR_VIEW"] = "COLOR_VIEW";
478
+ PermissionType["COMPANY_CREATE"] = "COMPANY_CREATE";
479
+ PermissionType["COMPANY_DELETE"] = "COMPANY_DELETE";
480
+ PermissionType["COMPANY_EDIT"] = "COMPANY_EDIT";
481
+ PermissionType["COMPANY_MANAGE"] = "COMPANY_MANAGE";
482
+ PermissionType["COMPANY_VIEW"] = "COMPANY_VIEW";
483
+ PermissionType["CONTENT_ENTRIES_DELETE"] = "CONTENT_ENTRIES_DELETE";
484
+ PermissionType["CONTENT_ENTRIES_EDIT"] = "CONTENT_ENTRIES_EDIT";
485
+ PermissionType["CONTENT_ENTRIES_VIEW"] = "CONTENT_ENTRIES_VIEW";
486
+ PermissionType["CONTENT_MANAGE"] = "CONTENT_MANAGE";
487
+ PermissionType["CONTENT_MODELS_DELETE"] = "CONTENT_MODELS_DELETE";
488
+ PermissionType["CONTENT_MODELS_EDIT"] = "CONTENT_MODELS_EDIT";
489
+ PermissionType["CONTENT_MODELS_VIEW"] = "CONTENT_MODELS_VIEW";
490
+ PermissionType["COUPON_CREATE"] = "COUPON_CREATE";
491
+ PermissionType["COUPON_DELETE"] = "COUPON_DELETE";
492
+ PermissionType["COUPON_EDIT"] = "COUPON_EDIT";
493
+ PermissionType["COUPON_MANAGE"] = "COUPON_MANAGE";
494
+ PermissionType["COUPON_VIEW"] = "COUPON_VIEW";
495
+ PermissionType["DASHBOARD"] = "DASHBOARD";
496
+ PermissionType["DOMAINS"] = "DOMAINS";
497
+ PermissionType["EXPORT_CUSTOMERS"] = "EXPORT_CUSTOMERS";
498
+ PermissionType["EXPORT_DRAFT_ORDERS"] = "EXPORT_DRAFT_ORDERS";
499
+ PermissionType["EXPORT_ORDERS"] = "EXPORT_ORDERS";
500
+ PermissionType["EXPORT_PRODUCTS"] = "EXPORT_PRODUCTS";
501
+ PermissionType["GIFT_CARDS"] = "GIFT_CARDS";
502
+ PermissionType["INVENTORY_CREATE"] = "INVENTORY_CREATE";
503
+ PermissionType["INVENTORY_DELETE"] = "INVENTORY_DELETE";
504
+ PermissionType["INVENTORY_EDIT"] = "INVENTORY_EDIT";
505
+ PermissionType["INVENTORY_MANAGE"] = "INVENTORY_MANAGE";
506
+ PermissionType["INVENTORY_VIEW"] = "INVENTORY_VIEW";
507
+ PermissionType["LINKS"] = "LINKS";
508
+ PermissionType["LOCATIONS"] = "LOCATIONS";
509
+ PermissionType["MANAGE_USER"] = "MANAGE_USER";
510
+ PermissionType["MARKETING_CREATE"] = "MARKETING_CREATE";
511
+ PermissionType["MARKETING_DELETE"] = "MARKETING_DELETE";
512
+ PermissionType["MARKETING_EDIT"] = "MARKETING_EDIT";
513
+ PermissionType["MARKETING_MANAGE"] = "MARKETING_MANAGE";
514
+ PermissionType["MARKETING_VIEW"] = "MARKETING_VIEW";
515
+ PermissionType["ORDER_CREATE"] = "ORDER_CREATE";
516
+ PermissionType["ORDER_DELETE"] = "ORDER_DELETE";
517
+ PermissionType["ORDER_EDIT"] = "ORDER_EDIT";
518
+ PermissionType["ORDER_MANAGE"] = "ORDER_MANAGE";
519
+ PermissionType["ORDER_VIEW"] = "ORDER_VIEW";
520
+ PermissionType["PAGE_CREATE"] = "PAGE_CREATE";
521
+ PermissionType["PAGE_DELETE"] = "PAGE_DELETE";
522
+ PermissionType["PAGE_EDIT"] = "PAGE_EDIT";
523
+ PermissionType["PAGE_MANAGE"] = "PAGE_MANAGE";
524
+ PermissionType["PAGE_VIEW"] = "PAGE_VIEW";
525
+ PermissionType["PAYMENT_SETTINGS"] = "PAYMENT_SETTINGS";
526
+ PermissionType["PERMISSION_CREATE"] = "PERMISSION_CREATE";
527
+ PermissionType["PERMISSION_DELETE"] = "PERMISSION_DELETE";
528
+ PermissionType["PERMISSION_EDIT"] = "PERMISSION_EDIT";
529
+ PermissionType["PERMISSION_MANAGE"] = "PERMISSION_MANAGE";
530
+ PermissionType["PERMISSION_VIEW"] = "PERMISSION_VIEW";
531
+ PermissionType["POLICY_CREATE"] = "POLICY_CREATE";
532
+ PermissionType["POLICY_DELETE"] = "POLICY_DELETE";
533
+ PermissionType["POLICY_EDIT"] = "POLICY_EDIT";
534
+ PermissionType["POLICY_MANAGE"] = "POLICY_MANAGE";
535
+ PermissionType["POLICY_VIEW"] = "POLICY_VIEW";
536
+ PermissionType["POST"] = "POST";
537
+ PermissionType["POST_CREATE"] = "POST_CREATE";
538
+ PermissionType["POST_DELETE"] = "POST_DELETE";
539
+ PermissionType["POST_EDIT"] = "POST_EDIT";
540
+ PermissionType["POST_VIEW"] = "POST_VIEW";
541
+ PermissionType["PREFERENCES"] = "PREFERENCES";
542
+ PermissionType["PRODUCT_CREATE"] = "PRODUCT_CREATE";
543
+ PermissionType["PRODUCT_DELETE"] = "PRODUCT_DELETE";
544
+ PermissionType["PRODUCT_EDIT"] = "PRODUCT_EDIT";
545
+ PermissionType["PRODUCT_VIEW"] = "PRODUCT_VIEW";
546
+ PermissionType["REPORTS"] = "REPORTS";
547
+ PermissionType["ROLE_CREATE"] = "ROLE_CREATE";
548
+ PermissionType["ROLE_DELETE"] = "ROLE_DELETE";
549
+ PermissionType["ROLE_EDIT"] = "ROLE_EDIT";
550
+ PermissionType["ROLE_VIEW"] = "ROLE_VIEW";
551
+ PermissionType["SAMPLEA"] = "SAMPLEA";
552
+ PermissionType["SAMPLEB"] = "SAMPLEB";
553
+ PermissionType["SAMPLEC"] = "SAMPLEC";
554
+ PermissionType["SAMPLED"] = "SAMPLED";
555
+ PermissionType["SETTINGS_CREATE"] = "SETTINGS_CREATE";
556
+ PermissionType["SETTINGS_DELETE"] = "SETTINGS_DELETE";
557
+ PermissionType["SETTINGS_EDIT"] = "SETTINGS_EDIT";
558
+ PermissionType["SETTINGS_MANAGE"] = "SETTINGS_MANAGE";
559
+ PermissionType["SETTINGS_VIEW"] = "SETTINGS_VIEW";
560
+ PermissionType["SHOP_CREATE"] = "SHOP_CREATE";
561
+ PermissionType["SHOP_DELETE"] = "SHOP_DELETE";
562
+ PermissionType["SHOP_EDIT"] = "SHOP_EDIT";
563
+ PermissionType["SHOP_MANAGE"] = "SHOP_MANAGE";
564
+ PermissionType["PRODUCT_MANAGE"] = "PRODUCT_MANAGE";
565
+ PermissionType["SHOP_VIEW"] = "SHOP_VIEW";
566
+ PermissionType["STAFF_API_PERMISSION_MANAGEMENT"] = "STAFF_API_PERMISSION_MANAGEMENT";
567
+ PermissionType["STAFF_MANAGE"] = "STAFF_MANAGE";
568
+ PermissionType["STAFF_MANAGEMENT_ACTIVATION"] = "STAFF_MANAGEMENT_ACTIVATION";
569
+ PermissionType["STAFF_MANAGEMENT_CREATE"] = "STAFF_MANAGEMENT_CREATE";
570
+ PermissionType["STAFF_MANAGEMENT_DELETE"] = "STAFF_MANAGEMENT_DELETE";
571
+ PermissionType["THEMES"] = "THEMES";
572
+ PermissionType["TICKET_CREATE"] = "TICKET_CREATE";
573
+ PermissionType["TICKET_DELETE"] = "TICKET_DELETE";
574
+ PermissionType["TICKET_EDIT"] = "TICKET_EDIT";
575
+ PermissionType["TICKET_MANAGE"] = "TICKET_MANAGE";
576
+ PermissionType["TICKET_VIEW"] = "TICKET_VIEW";
577
+ PermissionType["TOKEN"] = "TOKEN";
578
+ PermissionType["TOKEN_CREATE"] = "TOKEN_CREATE";
579
+ PermissionType["TOKEN_DELETE"] = "TOKEN_DELETE";
580
+ PermissionType["TOKEN_EDIT"] = "TOKEN_EDIT";
581
+ PermissionType["TOKEN_VIEW"] = "TOKEN_VIEW";
582
+ PermissionType["TRANSLATIONS"] = "TRANSLATIONS";
583
+ PermissionType["USER_CREATE"] = "USER_CREATE";
584
+ PermissionType["USER_DELETE"] = "USER_DELETE";
585
+ PermissionType["USER_EDIT"] = "USER_EDIT";
586
+ PermissionType["USER_VIEW"] = "USER_VIEW";
587
+ })(PermissionType || (exports.PermissionType = PermissionType = {}));
588
+ var ShopStatus;
589
+ (function (ShopStatus) {
590
+ ShopStatus["BANNED"] = "BANNED";
591
+ ShopStatus["DELETED"] = "DELETED";
592
+ ShopStatus["DRAFT"] = "DRAFT";
593
+ ShopStatus["PUBLISHED"] = "PUBLISHED";
594
+ ShopStatus["SUSPENDED"] = "SUSPENDED";
595
+ })(ShopStatus || (exports.ShopStatus = ShopStatus = {}));
596
+ /**
597
+ * Staff permission level
598
+ */
599
+ var StaffPermissionLevel;
600
+ (function (StaffPermissionLevel) {
601
+ StaffPermissionLevel["FULL_PERMISSIONS"] = "FULL_PERMISSIONS";
602
+ StaffPermissionLevel["LIMITED_PERMISSIONS"] = "LIMITED_PERMISSIONS";
603
+ StaffPermissionLevel["STORE_OWNER"] = "STORE_OWNER";
604
+ })(StaffPermissionLevel || (exports.StaffPermissionLevel = StaffPermissionLevel = {}));
605
+ //==============================================================
606
+ // END Enums and Input Objects
607
+ //==============================================================
@@ -0,0 +1,5 @@
1
+ export declare const BROWSER_AUTH_ENDPOINTS: {
2
+ DEVICE_STATUS_ENQUIRY: string;
3
+ GRAPHQL_ENPONT: string;
4
+ };
5
+ //# sourceMappingURL=endpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/constants/endpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;;CAGlC,CAAA"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BROWSER_AUTH_ENDPOINTS = void 0;
4
+ exports.BROWSER_AUTH_ENDPOINTS = {
5
+ DEVICE_STATUS_ENQUIRY: '/api/auth/browser',
6
+ GRAPHQL_ENPONT: '/api/auth/browser',
7
+ };
@@ -0,0 +1,6 @@
1
+ export declare const AUTH_TOKEN_KEY = "customer_auth";
2
+ export declare const REDIRECT_CUSTOMER = "redirectUrlCustomer";
3
+ /** Key used to store the shop redirect URL in cookies.*/
4
+ export declare const SHOP_REDIRECT_URL_COOKIE_KEY = "shopRedirectUrl";
5
+ export declare const CUSTOMER_REDIRECT_URL_COOKIE_KEY = "cmredirectUrl";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,yDAAyD;AACzD,eAAO,MAAM,4BAA4B,oBAAoB,CAAC;AAC9D,eAAO,MAAM,gCAAgC,kBAAkB,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CUSTOMER_REDIRECT_URL_COOKIE_KEY = exports.SHOP_REDIRECT_URL_COOKIE_KEY = exports.REDIRECT_CUSTOMER = exports.AUTH_TOKEN_KEY = void 0;
4
+ exports.AUTH_TOKEN_KEY = "customer_auth";
5
+ exports.REDIRECT_CUSTOMER = "redirectUrlCustomer";
6
+ /** Key used to store the shop redirect URL in cookies.*/
7
+ exports.SHOP_REDIRECT_URL_COOKIE_KEY = "shopRedirectUrl";
8
+ exports.CUSTOMER_REDIRECT_URL_COOKIE_KEY = "cmredirectUrl";
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { UserAuthProviderProps } from "./user/provider";
3
+ /** The authentication provider component. */
4
+ export declare const AuthProvider: React.FC<UserAuthProviderProps>;
5
+ //# sourceMappingURL=AuthContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthContext.d.ts","sourceRoot":"","sources":["../../../src/core/AuthContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,6CAA6C;AAC7C,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAQxD,CAAC"}