@ikas/api-client 0.0.1-canary.3

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 (92) hide show
  1. package/Jenkinsfile +92 -0
  2. package/README.md +2 -0
  3. package/codegen/admin.yml +9 -0
  4. package/dist/api/admin/admin-client.d.ts +8 -0
  5. package/dist/api/admin/admin-client.js +33 -0
  6. package/dist/api/admin/admin-client.js.map +1 -0
  7. package/dist/api/admin/common-gql.d.ts +4 -0
  8. package/dist/api/admin/common-gql.js +14 -0
  9. package/dist/api/admin/common-gql.js.map +1 -0
  10. package/dist/api/admin/generated/index.d.ts +2105 -0
  11. package/dist/api/admin/generated/index.js +340 -0
  12. package/dist/api/admin/generated/index.js.map +1 -0
  13. package/dist/api/admin/index.d.ts +4 -0
  14. package/dist/api/admin/index.js +17 -0
  15. package/dist/api/admin/index.js.map +1 -0
  16. package/dist/api/admin/mutation-gql.d.ts +6 -0
  17. package/dist/api/admin/mutation-gql.js +40 -0
  18. package/dist/api/admin/mutation-gql.js.map +1 -0
  19. package/dist/api/admin/mutation.d.ts +41 -0
  20. package/dist/api/admin/mutation.js +268 -0
  21. package/dist/api/admin/mutation.js.map +1 -0
  22. package/dist/api/admin/query-gql.d.ts +6 -0
  23. package/dist/api/admin/query-gql.js +34 -0
  24. package/dist/api/admin/query-gql.js.map +1 -0
  25. package/dist/api/admin/query.d.ts +33 -0
  26. package/dist/api/admin/query.js +205 -0
  27. package/dist/api/admin/query.js.map +1 -0
  28. package/dist/api/base.d.ts +44 -0
  29. package/dist/api/base.js +181 -0
  30. package/dist/api/base.js.map +1 -0
  31. package/dist/api/index.d.ts +2 -0
  32. package/dist/api/index.js +15 -0
  33. package/dist/api/index.js.map +1 -0
  34. package/dist/api/oauth/index.d.ts +11 -0
  35. package/dist/api/oauth/index.js +100 -0
  36. package/dist/api/oauth/index.js.map +1 -0
  37. package/dist/api/oauth/models.d.ts +35 -0
  38. package/dist/api/oauth/models.js +23 -0
  39. package/dist/api/oauth/models.js.map +1 -0
  40. package/dist/globals/constants.d.ts +13 -0
  41. package/dist/globals/constants.js +15 -0
  42. package/dist/globals/constants.js.map +1 -0
  43. package/dist/globals/index.d.ts +1 -0
  44. package/dist/globals/index.js +14 -0
  45. package/dist/globals/index.js.map +1 -0
  46. package/dist/helpers/index.d.ts +1 -0
  47. package/dist/helpers/index.js +14 -0
  48. package/dist/helpers/index.js.map +1 -0
  49. package/dist/helpers/webhook-validate.d.ts +1 -0
  50. package/dist/helpers/webhook-validate.js +67 -0
  51. package/dist/helpers/webhook-validate.js.map +1 -0
  52. package/dist/index.d.ts +21 -0
  53. package/dist/index.js +33 -0
  54. package/dist/index.js.map +1 -0
  55. package/dist/models/base.d.ts +7 -0
  56. package/dist/models/base.js +3 -0
  57. package/dist/models/base.js.map +1 -0
  58. package/dist/models/index.d.ts +1 -0
  59. package/dist/models/index.js +14 -0
  60. package/dist/models/index.js.map +1 -0
  61. package/dist/models/webhook/index.d.ts +1 -0
  62. package/dist/models/webhook/index.js +14 -0
  63. package/dist/models/webhook/index.js.map +1 -0
  64. package/dist/models/webhook/models.d.ts +68 -0
  65. package/dist/models/webhook/models.js +19 -0
  66. package/dist/models/webhook/models.js.map +1 -0
  67. package/dist/models/webhook/product.d.ts +19 -0
  68. package/dist/models/webhook/product.js +3 -0
  69. package/dist/models/webhook/product.js.map +1 -0
  70. package/package.json +51 -0
  71. package/src/api/admin/admin-client.ts +15 -0
  72. package/src/api/admin/common-gql.ts +425 -0
  73. package/src/api/admin/generated/index.ts +2373 -0
  74. package/src/api/admin/index.ts +4 -0
  75. package/src/api/admin/mutation-gql.ts +255 -0
  76. package/src/api/admin/mutation.ts +195 -0
  77. package/src/api/admin/query-gql.ts +434 -0
  78. package/src/api/admin/query.ts +119 -0
  79. package/src/api/base.ts +133 -0
  80. package/src/api/index.ts +2 -0
  81. package/src/api/oauth/index.ts +47 -0
  82. package/src/api/oauth/models.ts +37 -0
  83. package/src/globals/constants.ts +19 -0
  84. package/src/globals/index.ts +1 -0
  85. package/src/helpers/index.ts +1 -0
  86. package/src/helpers/webhook-validate.ts +17 -0
  87. package/src/index.ts +34 -0
  88. package/src/models/base.ts +7 -0
  89. package/src/models/index.ts +1 -0
  90. package/src/models/webhook/index.ts +1 -0
  91. package/src/models/webhook/models.ts +90 -0
  92. package/tsconfig.json +25 -0
@@ -0,0 +1,425 @@
1
+ import { gql } from 'graphql-request';
2
+
3
+ export const ORDER_GQL = gql`
4
+ {
5
+ billingAddress {
6
+ addressLine1
7
+ addressLine2
8
+ city {
9
+ code
10
+ id
11
+ name
12
+ }
13
+ company
14
+ country {
15
+ code
16
+ id
17
+ name
18
+ }
19
+ district {
20
+ code
21
+ id
22
+ name
23
+ }
24
+ firstName
25
+ identityNumber
26
+ isDefault
27
+ lastName
28
+ phone
29
+ postalCode
30
+ state {
31
+ code
32
+ id
33
+ name
34
+ }
35
+ taxNumber
36
+ taxOffice
37
+ }
38
+ cancelReason
39
+ cancelledAt
40
+ clientIp
41
+ createdAt
42
+ currencyCode
43
+ currencyRates {
44
+ code
45
+ originalRate
46
+ rate
47
+ }
48
+ customer {
49
+ email
50
+ firstName
51
+ id
52
+ identityNumber
53
+ lastName
54
+ phone
55
+ }
56
+ deleted
57
+ host
58
+ id
59
+ invoices {
60
+ appId
61
+ appName
62
+ createdAt
63
+ id
64
+ invoiceNumber
65
+ storeAppId
66
+ type
67
+ }
68
+ merchantId
69
+ note
70
+ orderAdjustments {
71
+ amount
72
+ amountType
73
+ campaignId
74
+ couponId
75
+ name
76
+ order
77
+ type
78
+ }
79
+ orderLineItems {
80
+ createdAt
81
+ currencyCode
82
+ deleted
83
+ discount {
84
+ amount
85
+ amountType
86
+ reason
87
+ }
88
+ discountPrice
89
+ finalPrice
90
+ id
91
+ originalOrderLineItemId
92
+ price
93
+ quantity
94
+ status
95
+ statusUpdatedAt
96
+ stockLocationId
97
+ taxValue
98
+ updatedAt
99
+ variant {
100
+ barcodeList
101
+ id
102
+ mainImageId
103
+ name
104
+ prices {
105
+ buyPrice
106
+ currency
107
+ discountPrice
108
+ priceListId
109
+ sellPrice
110
+ }
111
+ productId
112
+ sku
113
+ slug
114
+ tagIds
115
+ taxValue
116
+ type
117
+ variantValues {
118
+ order
119
+ variantTypeId
120
+ variantTypeName
121
+ variantValueId
122
+ variantValueName
123
+ }
124
+ }
125
+ }
126
+ orderNumber
127
+ orderPackageSequence
128
+ orderPackageStatus
129
+ orderPackages {
130
+ createdAt
131
+ deleted
132
+ errorMessage
133
+ id
134
+ note
135
+ orderLineItemIds
136
+ orderPackageFulfillStatus
137
+ orderPackageNumber
138
+ stockLocationId
139
+ trackingInfo {
140
+ barcode
141
+ cargoCompany
142
+ isSendNotification
143
+ trackingLink
144
+ trackingNumber
145
+ }
146
+ updatedAt
147
+ }
148
+ orderPaymentStatus
149
+ orderSequence
150
+ orderTagIds
151
+ orderedAt
152
+ paymentMethods {
153
+ price
154
+ type
155
+ }
156
+ priceList {
157
+ id
158
+ name
159
+ }
160
+ salesChannel {
161
+ id
162
+ name
163
+ type
164
+ }
165
+ shippingAddress {
166
+ addressLine1
167
+ addressLine2
168
+ city {
169
+ code
170
+ id
171
+ name
172
+ }
173
+ company
174
+ country {
175
+ code
176
+ id
177
+ name
178
+ }
179
+ district {
180
+ code
181
+ id
182
+ name
183
+ }
184
+ firstName
185
+ identityNumber
186
+ isDefault
187
+ lastName
188
+ phone
189
+ postalCode
190
+ state {
191
+ code
192
+ id
193
+ name
194
+ }
195
+ taxNumber
196
+ taxOffice
197
+ }
198
+ shippingLines {
199
+ isRefunded
200
+ price
201
+ shippingSettingsId
202
+ shippingZoneRateId
203
+ taxValue
204
+ title
205
+ }
206
+ shippingMethod
207
+ status
208
+ storefront {
209
+ id
210
+ name
211
+ }
212
+ storefrontRouting {
213
+ domain
214
+ id
215
+ locale
216
+ path
217
+ priceListId
218
+ }
219
+ storefrontTheme {
220
+ id
221
+ name
222
+ themeId
223
+ themeVersionId
224
+ }
225
+ taxLines {
226
+ price
227
+ rate
228
+ }
229
+ totalFinalPrice
230
+ totalPrice
231
+ updatedAt
232
+ userAgent
233
+ }
234
+ `;
235
+
236
+ export const CUSTOMER_GQL = gql`
237
+ {
238
+ accountStatus
239
+ accountStatusUpdatedAt
240
+ addresses {
241
+ addressLine1
242
+ addressLine2
243
+ attributes {
244
+ customerAttributeId
245
+ customerAttributeOptionId
246
+ value
247
+ }
248
+ city {
249
+ code
250
+ id
251
+ name
252
+ }
253
+ company
254
+ country {
255
+ code
256
+ id
257
+ name
258
+ }
259
+ createdAt
260
+ deleted
261
+ district {
262
+ code
263
+ id
264
+ name
265
+ }
266
+ firstName
267
+ id
268
+ identityNumber
269
+ isDefault
270
+ lastName
271
+ phone
272
+ postalCode
273
+ state {
274
+ code
275
+ id
276
+ name
277
+ }
278
+ taxNumber
279
+ taxOffice
280
+ title
281
+ updatedAt
282
+ }
283
+ attributes {
284
+ customerAttributeId
285
+ customerAttributeOptionId
286
+ value
287
+ }
288
+ createdAt
289
+ customerGroupIds
290
+ deleted
291
+ email
292
+ emailVerifiedDate
293
+ firstName
294
+ id
295
+ isEmailVerified
296
+ isPhoneVerified
297
+ lastName
298
+ note
299
+ passwordUpdateDate
300
+ phone
301
+ phoneVerifiedDate
302
+ subscriptionStatus
303
+ subscriptionStatusUpdatedAt
304
+ tagIds
305
+ updatedAt
306
+ orderCount
307
+ }
308
+ `;
309
+
310
+ export const PRODUCT_GQL = gql`
311
+ {
312
+ attributes {
313
+ productAttributeId
314
+ productAttributeOptionId
315
+ value
316
+ }
317
+ brandId
318
+ categoryIds
319
+ createdAt
320
+ deleted
321
+ description
322
+ id
323
+ metaData {
324
+ createdAt
325
+ deleted
326
+ description
327
+ pageTitle
328
+ redirectTo
329
+ targetId
330
+ targetType
331
+ updatedAt
332
+ metadataOverrides {
333
+ description
334
+ language
335
+ pageTitle
336
+ storefrontId
337
+ storefrontRegionId
338
+ }
339
+ }
340
+ name
341
+ productVariantTypes {
342
+ order
343
+ variantTypeId
344
+ variantValueIds
345
+ }
346
+ salesChannelIds
347
+ shortDescription
348
+ tagIds
349
+ type
350
+ updatedAt
351
+ variants {
352
+ attributes {
353
+ productAttributeOptionId
354
+ productAttributeId
355
+ value
356
+ }
357
+ barcodeList
358
+ createdAt
359
+ deleted
360
+ id
361
+ images {
362
+ imageId
363
+ isMain
364
+ order
365
+ }
366
+ isActive
367
+ prices {
368
+ buyPrice
369
+ currency
370
+ discountPrice
371
+ priceListId
372
+ sellPrice
373
+ }
374
+ sku
375
+ updatedAt
376
+ variantValueIds {
377
+ variantTypeId
378
+ variantValueId
379
+ }
380
+ weight
381
+ }
382
+ vendorId
383
+ weight
384
+ }
385
+ `;
386
+
387
+ export const CATEGORY_GQL = gql`
388
+ {
389
+ id
390
+ createdAt
391
+ updatedAt
392
+ deleted
393
+ name
394
+ description
395
+ parentId
396
+ isAutomated
397
+ imageId
398
+ orderType
399
+ salesChannelIds
400
+ shouldMatchAllConditions
401
+ conditions {
402
+ conditionType
403
+ valueList
404
+ }
405
+ metaData {
406
+ createdAt
407
+ deleted
408
+ description
409
+ id
410
+ metadataOverrides {
411
+ description
412
+ language
413
+ pageTitle
414
+ storefrontId
415
+ storefrontRegionId
416
+ }
417
+ pageTitle
418
+ redirectTo
419
+ slug
420
+ targetId
421
+ targetType
422
+ updatedAt
423
+ }
424
+ }
425
+ `;