@dropins/storefront-purchase-order 0.0.1-alpha1 → 0.0.1-alpha2

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 (129) hide show
  1. package/api/addPurchaseOrderComment/addPurchaseOrderComment.d.ts +4 -0
  2. package/api/addPurchaseOrderComment/graphql/addPurchaseOrderComment.graphql.d.ts +18 -0
  3. package/api/addPurchaseOrderComment/index.d.ts +18 -0
  4. package/api/addPurchaseOrderItemsToCart/addPurchaseOrderItemsToCart.d.ts +4 -0
  5. package/api/addPurchaseOrderItemsToCart/graphql/addPurchaseOrderItemsToCart.graphql.d.ts +18 -0
  6. package/api/addPurchaseOrderItemsToCart/index.d.ts +18 -0
  7. package/api/approvePurchaseOrders/approvePurchaseOrders.d.ts +10 -0
  8. package/api/approvePurchaseOrders/graphql/approvePurchaseOrders.graphql.d.ts +18 -0
  9. package/api/approvePurchaseOrders/index.d.ts +18 -0
  10. package/api/cancelPurchaseOrders/cancelPurchaseOrders.d.ts +10 -0
  11. package/api/cancelPurchaseOrders/graphql/cancelPurchaseOrders.graphql.d.ts +18 -0
  12. package/api/cancelPurchaseOrders/index.d.ts +18 -0
  13. package/api/createPurchaseOrderApprovalRule/createPurchaseOrderApprovalRule.d.ts +4 -0
  14. package/api/createPurchaseOrderApprovalRule/graphql/createPurchaseOrderApprovalRule.graphql.d.ts +18 -0
  15. package/api/createPurchaseOrderApprovalRule/index.d.ts +18 -0
  16. package/api/deletePurchaseOrderApprovalRule/deletePurchaseOrderApprovalRule.d.ts +9 -0
  17. package/api/deletePurchaseOrderApprovalRule/graphql/deletePurchaseOrderApprovalRule.graphql.d.ts +18 -0
  18. package/api/deletePurchaseOrderApprovalRule/index.d.ts +18 -0
  19. package/api/fragments.d.ts +18 -0
  20. package/api/getCustomerRolePermissions/getCustomerRolePermissions.d.ts +4 -0
  21. package/api/getCustomerRolePermissions/graphql/getCustomerRolePermissions.d.ts +16 -0
  22. package/api/getCustomerRolePermissions/index.d.ts +18 -0
  23. package/api/getPurchaseOrder/getPurchaseOrder.d.ts +6 -0
  24. package/api/getPurchaseOrder/graphql/getPurchaseOrder.graphql.d.ts +18 -0
  25. package/api/getPurchaseOrder/index.d.ts +18 -0
  26. package/api/getPurchaseOrderApprovalRuleMetadata/getPurchaseOrderApprovalRuleMetadata.d.ts +4 -0
  27. package/api/getPurchaseOrderApprovalRuleMetadata/graphql/getPurchaseOrderApprovalRuleMetadata.graphql.d.ts +18 -0
  28. package/api/getPurchaseOrderApprovalRuleMetadata/index.d.ts +18 -0
  29. package/api/getPurchaseOrders/getPurchaseOrders.d.ts +12 -0
  30. package/api/getPurchaseOrders/graphql/getPurchaseOrders.graphql.d.ts +18 -0
  31. package/api/getPurchaseOrders/index.d.ts +18 -0
  32. package/api/graphql/PurchaseOrdersFragment.graphql.d.ts +18 -0
  33. package/api/index.d.ts +31 -0
  34. package/api/initialize/lib/getPermissions.d.ts +19 -0
  35. package/api/initialize/lib/index.d.ts +18 -0
  36. package/api/placeOrderForPurchaseOrder/graphql/placeOrderForPurchaseOrder.graphql.d.ts +18 -0
  37. package/api/placeOrderForPurchaseOrder/index.d.ts +18 -0
  38. package/api/placeOrderForPurchaseOrder/placeOrderForPurchaseOrder.d.ts +4 -0
  39. package/api/placePurchaseOrder/graphql/placePurchaseOrder.graphql.d.ts +18 -0
  40. package/api/placePurchaseOrder/index.d.ts +18 -0
  41. package/api/placePurchaseOrder/placePurchaseOrder.d.ts +6 -0
  42. package/api/rejectPurchaseOrders/graphql/rejectPurchaseOrders.graphql.d.ts +18 -0
  43. package/api/rejectPurchaseOrders/index.d.ts +18 -0
  44. package/api/rejectPurchaseOrders/rejectPurchaseOrders.d.ts +10 -0
  45. package/api/updatePurchaseOrderApprovalRule/graphql/updatePurchaseOrderApprovalRule.graphql.d.ts +18 -0
  46. package/api/updatePurchaseOrderApprovalRule/index.d.ts +18 -0
  47. package/api/updatePurchaseOrderApprovalRule/updatePurchaseOrderApprovalRule.d.ts +4 -0
  48. package/api/validatePurchaseOrders/graphql/validatePurchaseOrders.graphql.d.ts +18 -0
  49. package/api/validatePurchaseOrders/index.d.ts +18 -0
  50. package/api/validatePurchaseOrders/validatePurchaseOrders.d.ts +10 -0
  51. package/api.js +330 -1
  52. package/api.js.map +1 -1
  53. package/chunks/PurchaseOrdersTableActions.js +4 -0
  54. package/chunks/PurchaseOrdersTableActions.js.map +1 -0
  55. package/chunks/getPurchaseOrders.js +113 -0
  56. package/chunks/getPurchaseOrders.js.map +1 -0
  57. package/chunks/usePurchaseOrders.js +4 -0
  58. package/chunks/usePurchaseOrders.js.map +1 -0
  59. package/components/PurchaseOrdersHeader/PurchaseOrdersHeader.d.ts +6 -0
  60. package/components/PurchaseOrdersHeader/index.d.ts +19 -0
  61. package/components/PurchaseOrdersTable/PurchaseOrdersTable.d.ts +5 -0
  62. package/components/PurchaseOrdersTable/index.d.ts +19 -0
  63. package/components/PurchaseOrdersTableActions/PurchaseOrdersTableActions.d.ts +5 -0
  64. package/components/PurchaseOrdersTableActions/index.d.ts +19 -0
  65. package/components/index.d.ts +19 -1
  66. package/configs/companyPurchaseOrders.config.d.ts +4 -0
  67. package/configs/customerPurchaseOrders.config.d.ts +4 -0
  68. package/configs/index.d.ts +21 -0
  69. package/configs/pageSize.config.d.ts +22 -0
  70. package/configs/purchaseOrderApprovalRules.config.d.ts +4 -0
  71. package/containers/CompanyPurchaseOrders/CompanyPurchaseOrders.d.ts +5 -0
  72. package/containers/CompanyPurchaseOrders/index.d.ts +19 -0
  73. package/containers/CompanyPurchaseOrders.d.ts +3 -0
  74. package/containers/CompanyPurchaseOrders.js +4 -0
  75. package/containers/CompanyPurchaseOrders.js.map +1 -0
  76. package/containers/CustomerPurchaseOrders/CustomerPurchaseOrders.d.ts +5 -0
  77. package/containers/CustomerPurchaseOrders/index.d.ts +19 -0
  78. package/containers/CustomerPurchaseOrders.d.ts +3 -0
  79. package/containers/CustomerPurchaseOrders.js +4 -0
  80. package/containers/CustomerPurchaseOrders.js.map +1 -0
  81. package/containers/RequireApprovalPurchaseOrders/RequireApprovalPurchaseOrders.d.ts +5 -0
  82. package/containers/RequireApprovalPurchaseOrders/index.d.ts +19 -0
  83. package/containers/RequireApprovalPurchaseOrders.d.ts +3 -0
  84. package/containers/RequireApprovalPurchaseOrders.js +4 -0
  85. package/containers/RequireApprovalPurchaseOrders.js.map +1 -0
  86. package/containers/index.d.ts +3 -1
  87. package/data/models/cart-model.d.ts +40 -0
  88. package/data/models/customer-order-model.d.ts +128 -0
  89. package/data/models/customer-role-permissions-model.d.ts +35 -0
  90. package/data/models/index.d.ts +23 -1
  91. package/data/models/purchase-order-approval-rule-metadata-model.d.ts +33 -0
  92. package/data/models/purchase-order-approval-rule-model.d.ts +50 -0
  93. package/data/models/purchase-order-comment-model.d.ts +39 -0
  94. package/data/models/purchase-order-model.d.ts +75 -0
  95. package/data/transforms/index.d.ts +22 -1
  96. package/data/transforms/transform-cart.d.ts +4 -0
  97. package/data/transforms/transform-customer-order.d.ts +4 -0
  98. package/data/transforms/transform-customer-role-permissions.d.ts +4 -0
  99. package/data/transforms/transform-purchase-order-approval-rule-metadata.d.ts +4 -0
  100. package/data/transforms/transform-purchase-order-approval-rule.d.ts +4 -0
  101. package/data/transforms/transform-purchase-order-comment.d.ts +4 -0
  102. package/data/transforms/transform-purchase-order.d.ts +4 -0
  103. package/hooks/index.d.ts +18 -0
  104. package/hooks/usePurchaseOrders.d.ts +4 -0
  105. package/i18n/en_US.json.d.ts +86 -2
  106. package/lib/case-converter.d.ts +25 -0
  107. package/lib/fetch-error.d.ts +21 -0
  108. package/lib/formatDate.d.ts +24 -0
  109. package/lib/getRange.d.ts +6 -0
  110. package/lib/index.d.ts +7 -0
  111. package/lib/isValidUrl.d.ts +2 -0
  112. package/lib/network-error.d.ts +22 -0
  113. package/mocks/index.d.ts +2832 -0
  114. package/mocks/storybook/index.d.ts +29 -0
  115. package/package.json +1 -1
  116. package/render.js +2 -1
  117. package/render.js.map +1 -1
  118. package/types/api/api.enums.types.d.ts +21 -0
  119. package/types/api/index.d.ts +2 -0
  120. package/types/components/index.d.ts +4 -0
  121. package/types/components/pagination.types.d.ts +27 -0
  122. package/types/components/purchaseOrdersTable.types.d.ts +31 -0
  123. package/types/components/purchaseOrdersTableActions.d.ts +8 -0
  124. package/types/containers/companyPurchaseOrders.types.d.ts +12 -0
  125. package/types/containers/customerPurchaseOrders.types.d.ts +12 -0
  126. package/types/containers/index.d.ts +4 -0
  127. package/types/containers/requireApprovalPurchaseOrders.types.d.ts +12 -0
  128. package/types/hooks/index.d.ts +2 -0
  129. package/types/hooks/usePurchaseOrders.types.d.ts +37 -0
@@ -0,0 +1,2832 @@
1
+ export declare const MOCK_DATE = "2024-01-01T00:00:00Z";
2
+ export declare const validCartIdForPlacePurchaseOrder = "cart-123";
3
+ export declare const mockGraphQLResponseForPlacePurchaseOrder: {
4
+ data: {
5
+ placePurchaseOrder: {
6
+ purchase_order: {
7
+ __typename: string;
8
+ uid: string;
9
+ number: string;
10
+ status: string;
11
+ created_at: string;
12
+ updated_at: string;
13
+ approval_flow: never[];
14
+ available_actions: never[];
15
+ comments: never[];
16
+ created_by: null;
17
+ history_log: never[];
18
+ order: null;
19
+ quote: null;
20
+ };
21
+ };
22
+ };
23
+ errors: undefined;
24
+ };
25
+ export declare const mockErrorResponseForPlacePurchaseOrder: {
26
+ data: null;
27
+ errors: {
28
+ message: string;
29
+ extensions: {
30
+ category: string;
31
+ };
32
+ }[];
33
+ };
34
+ export declare const mockNetworkErrorForPlacePurchaseOrder: Error;
35
+ export declare const mockEmptyDataResponseForPlacePurchaseOrder: {
36
+ data: null;
37
+ errors: undefined;
38
+ };
39
+ export declare const mockMissingPlacePurchaseOrderResponse: {
40
+ data: {};
41
+ errors: undefined;
42
+ };
43
+ export declare const validUidForRejectPurchaseOrders = "purchase-order-123";
44
+ export declare const validUidsForRejectPurchaseOrders: string[];
45
+ export declare const mockPurchaseOrderForReject: {
46
+ uid: string;
47
+ number: string;
48
+ created_at: string;
49
+ updated_at: string;
50
+ status: string;
51
+ available_actions: string[];
52
+ approval_flow: {
53
+ status: string;
54
+ current_step: null;
55
+ };
56
+ comments: {
57
+ uid: string;
58
+ author: {
59
+ firstname: string;
60
+ lastname: string;
61
+ email: string;
62
+ };
63
+ text: string;
64
+ created_at: string;
65
+ }[];
66
+ created_by: {
67
+ firstname: string;
68
+ lastname: string;
69
+ email: string;
70
+ };
71
+ history_log: {
72
+ activity: string;
73
+ created_at: string;
74
+ author: {
75
+ firstname: string;
76
+ lastname: string;
77
+ email: string;
78
+ };
79
+ }[];
80
+ };
81
+ export declare const mockPurchaseOrder2ForReject: {
82
+ uid: string;
83
+ number: string;
84
+ created_at: string;
85
+ updated_at: string;
86
+ status: string;
87
+ available_actions: string[];
88
+ };
89
+ export declare const mockSuccessResponseForReject: {
90
+ data: {
91
+ rejectPurchaseOrders: {
92
+ purchase_orders: {
93
+ uid: string;
94
+ number: string;
95
+ created_at: string;
96
+ updated_at: string;
97
+ status: string;
98
+ available_actions: string[];
99
+ approval_flow: {
100
+ status: string;
101
+ current_step: null;
102
+ };
103
+ comments: {
104
+ uid: string;
105
+ author: {
106
+ firstname: string;
107
+ lastname: string;
108
+ email: string;
109
+ };
110
+ text: string;
111
+ created_at: string;
112
+ }[];
113
+ created_by: {
114
+ firstname: string;
115
+ lastname: string;
116
+ email: string;
117
+ };
118
+ history_log: {
119
+ activity: string;
120
+ created_at: string;
121
+ author: {
122
+ firstname: string;
123
+ lastname: string;
124
+ email: string;
125
+ };
126
+ }[];
127
+ }[];
128
+ errors: never[];
129
+ };
130
+ };
131
+ };
132
+ export declare const mockCancelPurchaseOrderSingleSuccessResponse: {
133
+ data: {
134
+ cancelPurchaseOrders: {
135
+ purchase_orders: {
136
+ uid: string;
137
+ number: string;
138
+ status: string;
139
+ created_at: string;
140
+ updated_at: string;
141
+ available_actions: string[];
142
+ }[];
143
+ errors: never[];
144
+ };
145
+ };
146
+ };
147
+ export declare const mockCancelPurchaseOrderMultipleSuccessResponse: {
148
+ data: {
149
+ cancelPurchaseOrders: {
150
+ purchase_orders: {
151
+ uid: string;
152
+ number: string;
153
+ status: string;
154
+ created_at: string;
155
+ updated_at: string;
156
+ available_actions: string[];
157
+ }[];
158
+ errors: never[];
159
+ };
160
+ };
161
+ };
162
+ export declare const mockCancelPurchaseOrderEmptyResponse: {
163
+ data: {
164
+ cancelPurchaseOrders: {
165
+ purchase_orders: never[];
166
+ errors: never[];
167
+ };
168
+ };
169
+ };
170
+ export declare const mockCancelPurchaseOrderGraphQLErrorResponse: {
171
+ errors: {
172
+ message: string;
173
+ extensions: {
174
+ category: string;
175
+ };
176
+ }[];
177
+ data: {
178
+ cancelPurchaseOrders: {
179
+ purchase_orders: never[];
180
+ errors: never[];
181
+ };
182
+ };
183
+ };
184
+ export declare const mockCancelPurchaseOrderMissingDataResponse: {
185
+ data: undefined;
186
+ };
187
+ export declare const mockCancelPurchaseOrderMissingCancelResponse: {
188
+ data: {};
189
+ };
190
+ export declare const mockCancelPurchaseOrderNotFoundResponse: {
191
+ data: {
192
+ cancelPurchaseOrders: {
193
+ purchase_orders: never[];
194
+ errors: {
195
+ message: string;
196
+ type: string;
197
+ }[];
198
+ };
199
+ };
200
+ };
201
+ export declare const mockCancelPurchaseOrderPartialMixedResponse: {
202
+ data: {
203
+ cancelPurchaseOrders: {
204
+ purchase_orders: {
205
+ uid: string;
206
+ number: string;
207
+ status: string;
208
+ created_at: string;
209
+ updated_at: string;
210
+ available_actions: string[];
211
+ }[];
212
+ errors: {
213
+ message: string;
214
+ type: string;
215
+ }[];
216
+ };
217
+ };
218
+ };
219
+ export declare const mockCancelPurchaseOrderComplexResponse: {
220
+ data: {
221
+ cancelPurchaseOrders: {
222
+ purchase_orders: {
223
+ uid: string;
224
+ number: string;
225
+ status: string;
226
+ created_at: string;
227
+ updated_at: string;
228
+ available_actions: string[];
229
+ approval_flow: {
230
+ rules_requiring_approval: {
231
+ rule_id: string;
232
+ name: string;
233
+ }[];
234
+ };
235
+ comments: {
236
+ id: string;
237
+ message: string;
238
+ }[];
239
+ history_log: {
240
+ action: string;
241
+ timestamp: string;
242
+ }[];
243
+ created_by: {
244
+ name: string;
245
+ email: string;
246
+ };
247
+ quote: {
248
+ id: string;
249
+ total: number;
250
+ };
251
+ order: null;
252
+ }[];
253
+ errors: never[];
254
+ };
255
+ };
256
+ };
257
+ export declare const validPurchaseOrderUidForApproval = "test-uid-1";
258
+ export declare const validPurchaseOrderUidsForApproval: string[];
259
+ export declare const mockSinglePurchaseOrder: {
260
+ uid: string;
261
+ number: string;
262
+ status: string;
263
+ created_at: string;
264
+ updated_at: string;
265
+ available_actions: string[];
266
+ __typename: string;
267
+ approval_flow: undefined;
268
+ comments: undefined;
269
+ created_by: undefined;
270
+ history_log: undefined;
271
+ order: undefined;
272
+ quote: undefined;
273
+ };
274
+ export declare const mockPurchaseOrder: {
275
+ uid: string;
276
+ number: string;
277
+ status: string;
278
+ created_at: string;
279
+ updated_at: string;
280
+ available_actions: string[];
281
+ __typename: string;
282
+ approval_flow: undefined;
283
+ comments: undefined;
284
+ created_by: undefined;
285
+ history_log: undefined;
286
+ order: undefined;
287
+ quote: undefined;
288
+ };
289
+ export declare const mockPurchaseOrderForApproval2: {
290
+ uid: string;
291
+ number: string;
292
+ status: string;
293
+ created_at: string;
294
+ updated_at: string;
295
+ available_actions: string[];
296
+ __typename: string;
297
+ approval_flow: undefined;
298
+ comments: undefined;
299
+ created_by: undefined;
300
+ history_log: undefined;
301
+ order: undefined;
302
+ quote: undefined;
303
+ };
304
+ export declare const mockApprovePurchaseOrderSingleSuccessResponse: {
305
+ data: {
306
+ approvePurchaseOrders: {
307
+ purchase_orders: {
308
+ uid: string;
309
+ number: string;
310
+ status: string;
311
+ created_at: string;
312
+ updated_at: string;
313
+ available_actions: string[];
314
+ __typename: string;
315
+ approval_flow: undefined;
316
+ comments: undefined;
317
+ created_by: undefined;
318
+ history_log: undefined;
319
+ order: undefined;
320
+ quote: undefined;
321
+ }[];
322
+ errors: never[];
323
+ };
324
+ };
325
+ };
326
+ export declare const mockApprovePurchaseOrderMultipleSuccessResponse: {
327
+ data: {
328
+ approvePurchaseOrders: {
329
+ purchase_orders: {
330
+ uid: string;
331
+ number: string;
332
+ status: string;
333
+ created_at: string;
334
+ updated_at: string;
335
+ available_actions: string[];
336
+ __typename: string;
337
+ approval_flow: undefined;
338
+ comments: undefined;
339
+ created_by: undefined;
340
+ history_log: undefined;
341
+ order: undefined;
342
+ quote: undefined;
343
+ }[];
344
+ errors: never[];
345
+ };
346
+ };
347
+ };
348
+ export declare const mockGraphQLErrors: {
349
+ message: string;
350
+ extensions: {
351
+ category: string;
352
+ };
353
+ }[];
354
+ export declare const mockApprovePurchaseOrderErrorResponse: {
355
+ data: {
356
+ approvePurchaseOrders: {
357
+ purchase_orders: never[];
358
+ errors: never[];
359
+ };
360
+ };
361
+ errors: {
362
+ message: string;
363
+ extensions: {
364
+ category: string;
365
+ };
366
+ }[];
367
+ };
368
+ export declare const mockApprovePurchaseOrderEmptyResponse: {
369
+ data: {
370
+ approvePurchaseOrders: {
371
+ purchase_orders: never[];
372
+ errors: never[];
373
+ };
374
+ };
375
+ };
376
+ export declare const mockApprovePurchaseOrderMissingDataResponse: {
377
+ data: undefined;
378
+ };
379
+ export declare const mockApprovePurchaseOrderMissingApprovalResponse: {
380
+ data: {};
381
+ };
382
+ export declare const mockApprovePurchaseOrderNotFoundResponse: {
383
+ data: {
384
+ approvePurchaseOrders: {
385
+ purchase_orders: never[];
386
+ errors: {
387
+ message: string;
388
+ type: string;
389
+ }[];
390
+ };
391
+ };
392
+ };
393
+ export declare const mockApprovePurchaseOrderPartialMixedResponse: {
394
+ data: {
395
+ approvePurchaseOrders: {
396
+ purchase_orders: {
397
+ uid: string;
398
+ number: string;
399
+ status: string;
400
+ created_at: string;
401
+ updated_at: string;
402
+ available_actions: string[];
403
+ }[];
404
+ errors: {
405
+ message: string;
406
+ type: string;
407
+ }[];
408
+ };
409
+ };
410
+ };
411
+ export declare const mockApprovePurchaseOrderComplexResponse: {
412
+ data: {
413
+ approvePurchaseOrders: {
414
+ purchase_orders: {
415
+ uid: string;
416
+ number: string;
417
+ status: string;
418
+ created_at: string;
419
+ updated_at: string;
420
+ available_actions: string[];
421
+ approval_flow: {
422
+ rules_requiring_approval: {
423
+ rule_id: string;
424
+ name: string;
425
+ }[];
426
+ };
427
+ comments: {
428
+ id: string;
429
+ message: string;
430
+ }[];
431
+ history_log: {
432
+ action: string;
433
+ timestamp: string;
434
+ }[];
435
+ created_by: {
436
+ name: string;
437
+ email: string;
438
+ };
439
+ quote: {
440
+ id: string;
441
+ total: number;
442
+ };
443
+ order: null;
444
+ }[];
445
+ errors: never[];
446
+ };
447
+ };
448
+ };
449
+ export declare const validPurchaseOrderUidForCart = "valid-po-uid-123";
450
+ export declare const validPurchaseOrderUidForPlaceOrder = "purchase-order-123";
451
+ export declare const mockOrderDataForPlaceOrder: {
452
+ id: string;
453
+ number: string;
454
+ order_date: string;
455
+ order_status_change_date: string;
456
+ status: string;
457
+ email: string;
458
+ available_actions: string[];
459
+ carrier: string;
460
+ gift_receipt_included: boolean;
461
+ is_virtual: boolean;
462
+ printed_card_included: boolean;
463
+ shipping_method: string;
464
+ token: string;
465
+ applied_coupons: never[];
466
+ applied_gift_cards: never[];
467
+ billing_address: {
468
+ firstname: string;
469
+ lastname: string;
470
+ street: string[];
471
+ city: string;
472
+ region: string;
473
+ postcode: string;
474
+ country_code: string;
475
+ telephone: string;
476
+ };
477
+ comments: never[];
478
+ credit_memos: never[];
479
+ custom_attributes: never[];
480
+ customer_info: {
481
+ firstname: string;
482
+ lastname: string;
483
+ email: string;
484
+ };
485
+ gift_message: null;
486
+ gift_wrapping: null;
487
+ invoices: never[];
488
+ items: {
489
+ id: string;
490
+ product_name: string;
491
+ product_sku: string;
492
+ quantity_ordered: number;
493
+ product_sale_price: {
494
+ value: number;
495
+ currency: string;
496
+ };
497
+ }[];
498
+ items_eligible_for_return: never[];
499
+ payment_methods: {
500
+ name: string;
501
+ type: string;
502
+ additional_data: never[];
503
+ }[];
504
+ returns: null;
505
+ shipments: never[];
506
+ shipping_address: {
507
+ firstname: string;
508
+ lastname: string;
509
+ street: string[];
510
+ city: string;
511
+ region: string;
512
+ postcode: string;
513
+ country_code: string;
514
+ telephone: string;
515
+ };
516
+ total: {
517
+ grand_total: {
518
+ value: number;
519
+ currency: string;
520
+ };
521
+ subtotal: {
522
+ value: number;
523
+ currency: string;
524
+ };
525
+ taxes: never[];
526
+ };
527
+ };
528
+ export declare const mockSuccessResponseForPlaceOrder: {
529
+ data: {
530
+ placeOrderForPurchaseOrder: {
531
+ order: {
532
+ id: string;
533
+ number: string;
534
+ order_date: string;
535
+ order_status_change_date: string;
536
+ status: string;
537
+ email: string;
538
+ available_actions: string[];
539
+ carrier: string;
540
+ gift_receipt_included: boolean;
541
+ is_virtual: boolean;
542
+ printed_card_included: boolean;
543
+ shipping_method: string;
544
+ token: string;
545
+ applied_coupons: never[];
546
+ applied_gift_cards: never[];
547
+ billing_address: {
548
+ firstname: string;
549
+ lastname: string;
550
+ street: string[];
551
+ city: string;
552
+ region: string;
553
+ postcode: string;
554
+ country_code: string;
555
+ telephone: string;
556
+ };
557
+ comments: never[];
558
+ credit_memos: never[];
559
+ custom_attributes: never[];
560
+ customer_info: {
561
+ firstname: string;
562
+ lastname: string;
563
+ email: string;
564
+ };
565
+ gift_message: null;
566
+ gift_wrapping: null;
567
+ invoices: never[];
568
+ items: {
569
+ id: string;
570
+ product_name: string;
571
+ product_sku: string;
572
+ quantity_ordered: number;
573
+ product_sale_price: {
574
+ value: number;
575
+ currency: string;
576
+ };
577
+ }[];
578
+ items_eligible_for_return: never[];
579
+ payment_methods: {
580
+ name: string;
581
+ type: string;
582
+ additional_data: never[];
583
+ }[];
584
+ returns: null;
585
+ shipments: never[];
586
+ shipping_address: {
587
+ firstname: string;
588
+ lastname: string;
589
+ street: string[];
590
+ city: string;
591
+ region: string;
592
+ postcode: string;
593
+ country_code: string;
594
+ telephone: string;
595
+ };
596
+ total: {
597
+ grand_total: {
598
+ value: number;
599
+ currency: string;
600
+ };
601
+ subtotal: {
602
+ value: number;
603
+ currency: string;
604
+ };
605
+ taxes: never[];
606
+ };
607
+ };
608
+ };
609
+ };
610
+ };
611
+ export declare const validCartId = "valid-cart-id-456";
612
+ export declare const mockProduct: {
613
+ uid: string;
614
+ name: string;
615
+ sku: string;
616
+ };
617
+ export declare const mockCartItem: {
618
+ uid: string;
619
+ quantity: number;
620
+ product: {
621
+ uid: string;
622
+ name: string;
623
+ sku: string;
624
+ };
625
+ };
626
+ export declare const mockCart: {
627
+ id: string;
628
+ itemsV2: {
629
+ items: {
630
+ uid: string;
631
+ quantity: number;
632
+ product: {
633
+ uid: string;
634
+ name: string;
635
+ sku: string;
636
+ };
637
+ }[];
638
+ page_info: {
639
+ current_page: number;
640
+ page_size: number;
641
+ total_pages: number;
642
+ };
643
+ total_count: number;
644
+ };
645
+ };
646
+ export declare const mockAddPurchaseOrderItemsToCartSuccessResponse: {
647
+ data: {
648
+ addPurchaseOrderItemsToCart: {
649
+ cart: {
650
+ id: string;
651
+ itemsV2: {
652
+ items: {
653
+ uid: string;
654
+ quantity: number;
655
+ product: {
656
+ uid: string;
657
+ name: string;
658
+ sku: string;
659
+ };
660
+ }[];
661
+ page_info: {
662
+ current_page: number;
663
+ page_size: number;
664
+ total_pages: number;
665
+ };
666
+ total_count: number;
667
+ };
668
+ };
669
+ user_errors: never[];
670
+ };
671
+ };
672
+ };
673
+ export declare const mockErrors: {
674
+ message: string;
675
+ }[];
676
+ export declare const mockErrorResponse: {
677
+ data: {
678
+ addPurchaseOrderItemsToCart: {
679
+ cart: {
680
+ id: string;
681
+ itemsV2: {
682
+ items: {
683
+ uid: string;
684
+ quantity: number;
685
+ product: {
686
+ uid: string;
687
+ name: string;
688
+ sku: string;
689
+ };
690
+ }[];
691
+ page_info: {
692
+ current_page: number;
693
+ page_size: number;
694
+ total_pages: number;
695
+ };
696
+ total_count: number;
697
+ };
698
+ };
699
+ user_errors: never[];
700
+ };
701
+ };
702
+ errors: {
703
+ message: string;
704
+ }[];
705
+ };
706
+ export declare const mockCommentDataSnakeCase: {
707
+ created_at: string;
708
+ text: string;
709
+ uid: string;
710
+ author: {
711
+ allow_remote_shopping_assistance: boolean;
712
+ confirmation_status: string;
713
+ created_at: string;
714
+ date_of_birth: string;
715
+ email: string;
716
+ firstname: string;
717
+ gender: number;
718
+ job_title: string;
719
+ lastname: string;
720
+ middlename: string;
721
+ prefix: string;
722
+ suffix: string;
723
+ telephone: string;
724
+ };
725
+ };
726
+ export declare const mockPartialAuthorCommentDataSnakeCase: {
727
+ created_at: string;
728
+ text: string;
729
+ uid: string;
730
+ author: {
731
+ email: string;
732
+ firstname: string;
733
+ lastname: string;
734
+ };
735
+ };
736
+ export declare const mockNoAuthorCommentDataSnakeCase: {
737
+ created_at: string;
738
+ text: string;
739
+ uid: string;
740
+ author: {};
741
+ };
742
+ export declare const mockEmptyAuthorCommentDataSnakeCase: {
743
+ text: string;
744
+ uid: string;
745
+ created_at: string;
746
+ author: {};
747
+ };
748
+ export declare const mockCartDataSnakeCase: {
749
+ cart: {
750
+ id: string;
751
+ itemsV2: {
752
+ items: {
753
+ uid: string;
754
+ quantity: number;
755
+ product: {
756
+ uid: string;
757
+ name: string;
758
+ sku: string;
759
+ };
760
+ }[];
761
+ page_info: {
762
+ current_page: number;
763
+ page_size: number;
764
+ total_pages: number;
765
+ };
766
+ total_count: number;
767
+ };
768
+ };
769
+ user_errors: {
770
+ message: string;
771
+ }[];
772
+ };
773
+ export declare const mockEmptyCartDataSnakeCase: {
774
+ cart: {
775
+ id: string;
776
+ items: never[];
777
+ };
778
+ user_errors: never[];
779
+ };
780
+ export declare const mockCartWithErrorsSnakeCase: {
781
+ cart: {
782
+ id: string;
783
+ items: never[];
784
+ };
785
+ user_errors: {
786
+ message: string;
787
+ }[];
788
+ };
789
+ export declare const mockCartNoItemsArraySnakeCase: {
790
+ cart: {
791
+ id: string;
792
+ };
793
+ user_errors: never[];
794
+ };
795
+ export declare const mockPartialCartItemDataSnakeCase: {
796
+ cart: {
797
+ id: string;
798
+ itemsV2: {
799
+ items: {
800
+ uid: string;
801
+ quantity: number;
802
+ product: {
803
+ uid: string;
804
+ };
805
+ }[];
806
+ page_info: {
807
+ current_page: number;
808
+ page_size: number;
809
+ total_pages: number;
810
+ };
811
+ total_count: number;
812
+ };
813
+ };
814
+ user_errors: never[];
815
+ };
816
+ export declare const mockCartItemsV2SnakeCase: {
817
+ cart: {
818
+ id: string;
819
+ itemsV2: {
820
+ items: {
821
+ uid: string;
822
+ quantity: number;
823
+ product: {
824
+ uid: string;
825
+ name: string;
826
+ sku: string;
827
+ };
828
+ }[];
829
+ page_info: {
830
+ current_page: number;
831
+ page_size: number;
832
+ total_pages: number;
833
+ };
834
+ total_count: number;
835
+ };
836
+ };
837
+ user_errors: never[];
838
+ };
839
+ export declare const mockCartItemsV2AndItemsSnakeCase: {
840
+ cart: {
841
+ id: string;
842
+ items: {
843
+ uid: string;
844
+ quantity: number;
845
+ product: {
846
+ uid: string;
847
+ name: string;
848
+ sku: string;
849
+ };
850
+ }[];
851
+ itemsV2: {
852
+ items: {
853
+ uid: string;
854
+ quantity: number;
855
+ product: {
856
+ uid: string;
857
+ name: string;
858
+ sku: string;
859
+ };
860
+ }[];
861
+ page_info: {
862
+ current_page: number;
863
+ page_size: number;
864
+ total_pages: number;
865
+ };
866
+ total_count: number;
867
+ };
868
+ };
869
+ user_errors: never[];
870
+ };
871
+ export declare const mockApprovalDataSnakeCase: {
872
+ errors: {
873
+ message: string;
874
+ type: string;
875
+ }[];
876
+ purchase_orders: {
877
+ __typename: string;
878
+ uid: string;
879
+ number: string;
880
+ status: string;
881
+ created_at: string;
882
+ updated_at: string;
883
+ approval_flow: {
884
+ rules: never[];
885
+ };
886
+ available_actions: string[];
887
+ comments: never[];
888
+ created_by: {
889
+ email: string;
890
+ firstname: string;
891
+ lastname: string;
892
+ };
893
+ history_log: never[];
894
+ order: null;
895
+ quote: {
896
+ uid: string;
897
+ number: string;
898
+ };
899
+ }[];
900
+ };
901
+ export declare const mockEmptyApprovalDataSnakeCase: {
902
+ errors: never[];
903
+ purchase_orders: never[];
904
+ };
905
+ export declare const mockPartialPurchaseOrderSnakeCase: {
906
+ errors: never[];
907
+ purchase_orders: {
908
+ uid: string;
909
+ number: string;
910
+ status: string;
911
+ created_at: string;
912
+ updated_at: string;
913
+ available_actions: never[];
914
+ }[];
915
+ };
916
+ export declare const mockMultipleErrorTypesSnakeCase: {
917
+ errors: {
918
+ message: string;
919
+ type: string;
920
+ }[];
921
+ purchase_orders: never[];
922
+ };
923
+ export declare const mockNullErrorAndPurchaseOrderSnakeCase: {
924
+ errors: {
925
+ message: null;
926
+ type: null;
927
+ }[];
928
+ purchase_orders: {
929
+ uid: null;
930
+ number: null;
931
+ status: null;
932
+ created_at: null;
933
+ updated_at: null;
934
+ available_actions: null;
935
+ }[];
936
+ };
937
+ export declare const mockPartialCancelPurchaseOrderSnakeCase: {
938
+ errors: never[];
939
+ purchase_orders: {
940
+ uid: string;
941
+ number: string;
942
+ status: string;
943
+ created_at: string;
944
+ updated_at: string;
945
+ available_actions: never[];
946
+ }[];
947
+ };
948
+ export declare const mockComplexCancelPurchaseOrderSnakeCase: {
949
+ errors: never[];
950
+ purchase_orders: {
951
+ uid: string;
952
+ number: string;
953
+ status: string;
954
+ created_at: string;
955
+ updated_at: string;
956
+ available_actions: never[];
957
+ comments: {
958
+ message: string;
959
+ uid: string;
960
+ }[];
961
+ approval_flow: undefined;
962
+ }[];
963
+ };
964
+ export declare const mockCreateApprovalRuleSnakeCase: {
965
+ data: {
966
+ createPurchaseOrderApprovalRule: {
967
+ uid: string;
968
+ name: string;
969
+ description: string;
970
+ status: string;
971
+ created_at: string;
972
+ updated_at: string;
973
+ created_by: {
974
+ firstname: string;
975
+ lastname: string;
976
+ email: string;
977
+ };
978
+ applies_to_roles: {
979
+ id: string;
980
+ name: string;
981
+ users_count: number;
982
+ permissions: {
983
+ id: string;
984
+ sort_order: number;
985
+ text: string;
986
+ }[];
987
+ }[];
988
+ approver_roles: {
989
+ id: string;
990
+ name: string;
991
+ users_count: number;
992
+ permissions: {
993
+ id: string;
994
+ sort_order: number;
995
+ text: string;
996
+ }[];
997
+ }[];
998
+ condition: {
999
+ attribute: string;
1000
+ operator: string;
1001
+ };
1002
+ };
1003
+ };
1004
+ };
1005
+ export declare const mockCreateApprovalRulePartialSnakeCase: {
1006
+ data: {
1007
+ createPurchaseOrderApprovalRule: {
1008
+ uid: string;
1009
+ name: string;
1010
+ status: string;
1011
+ created_at: string;
1012
+ updated_at: string;
1013
+ condition: {
1014
+ attribute: string;
1015
+ operator: string;
1016
+ };
1017
+ };
1018
+ };
1019
+ };
1020
+ export declare const mockCreateApprovalRuleNullsSnakeCase: {
1021
+ data: {
1022
+ createPurchaseOrderApprovalRule: {
1023
+ uid: null;
1024
+ name: null;
1025
+ description: null;
1026
+ status: null;
1027
+ created_at: null;
1028
+ updated_at: null;
1029
+ created_by: null;
1030
+ applies_to_roles: never[];
1031
+ approver_roles: never[];
1032
+ condition: {
1033
+ attribute: null;
1034
+ operator: null;
1035
+ };
1036
+ };
1037
+ };
1038
+ };
1039
+ export declare const mockCreateApprovalRuleIncompleteRolesSnakeCase: {
1040
+ data: {
1041
+ createPurchaseOrderApprovalRule: {
1042
+ uid: string;
1043
+ name: string;
1044
+ status: string;
1045
+ created_at: string;
1046
+ updated_at: string;
1047
+ applies_to_roles: {
1048
+ id: null;
1049
+ name: null;
1050
+ users_count: null;
1051
+ permissions: never[];
1052
+ }[];
1053
+ approver_roles: {
1054
+ id: string;
1055
+ name: string;
1056
+ users_count: number;
1057
+ permissions: {
1058
+ id: null;
1059
+ sort_order: null;
1060
+ text: null;
1061
+ }[];
1062
+ }[];
1063
+ condition: {
1064
+ attribute: string;
1065
+ operator: string;
1066
+ };
1067
+ };
1068
+ };
1069
+ };
1070
+ export declare const mockCreateApprovalRuleEmptyPermissionsSnakeCase: {
1071
+ data: {
1072
+ createPurchaseOrderApprovalRule: {
1073
+ uid: string;
1074
+ name: string;
1075
+ status: string;
1076
+ created_at: string;
1077
+ updated_at: string;
1078
+ applies_to_roles: {
1079
+ id: string;
1080
+ name: string;
1081
+ users_count: number;
1082
+ permissions: never[];
1083
+ }[];
1084
+ approver_roles: never[];
1085
+ condition: {
1086
+ attribute: string;
1087
+ operator: string;
1088
+ };
1089
+ };
1090
+ };
1091
+ };
1092
+ export declare const mockCreateApprovalRuleNoDataSnakeCase: {
1093
+ data: null;
1094
+ };
1095
+ export declare const mockCreateApprovalRuleNoRuleSnakeCase: {
1096
+ data: {
1097
+ createPurchaseOrderApprovalRule: null;
1098
+ };
1099
+ };
1100
+ export declare const mockCreateApprovalRuleMultipleRolesSnakeCase: {
1101
+ data: {
1102
+ createPurchaseOrderApprovalRule: {
1103
+ uid: string;
1104
+ name: string;
1105
+ status: string;
1106
+ created_at: string;
1107
+ updated_at: string;
1108
+ applies_to_roles: {
1109
+ id: string;
1110
+ name: string;
1111
+ users_count: number;
1112
+ permissions: {
1113
+ id: string;
1114
+ sort_order: number;
1115
+ text: string;
1116
+ }[];
1117
+ }[];
1118
+ approver_roles: {
1119
+ id: string;
1120
+ name: string;
1121
+ users_count: number;
1122
+ permissions: {
1123
+ id: string;
1124
+ sort_order: number;
1125
+ text: string;
1126
+ }[];
1127
+ }[];
1128
+ condition: {
1129
+ attribute: string;
1130
+ operator: string;
1131
+ };
1132
+ };
1133
+ };
1134
+ };
1135
+ export declare const mockDeleteApprovalRuleSuccessSnakeCase: {
1136
+ data: {
1137
+ deletePurchaseOrderApprovalRule: {
1138
+ errors: never[];
1139
+ };
1140
+ };
1141
+ };
1142
+ export declare const mockGetPurchaseOrderApprovalRuleMetadataFullDataSnakeCase: {
1143
+ data: {
1144
+ customer: {
1145
+ purchase_order_approval_rule_metadata: {
1146
+ available_applies_to: {
1147
+ id: string;
1148
+ name: string;
1149
+ users_count: number;
1150
+ permissions: ({
1151
+ id: string;
1152
+ sort_order: number;
1153
+ text: string;
1154
+ children: {
1155
+ id: string;
1156
+ sort_order: number;
1157
+ text: string;
1158
+ children: {
1159
+ id: string;
1160
+ sort_order: number;
1161
+ text: string;
1162
+ }[];
1163
+ }[];
1164
+ } | {
1165
+ id: string;
1166
+ sort_order: number;
1167
+ text: string;
1168
+ children?: undefined;
1169
+ })[];
1170
+ }[];
1171
+ available_requires_approval_from: {
1172
+ id: string;
1173
+ name: string;
1174
+ users_count: number;
1175
+ }[];
1176
+ };
1177
+ };
1178
+ };
1179
+ };
1180
+ export declare const mockGetPurchaseOrderApprovalRuleMetadataNoChildrenSnakeCase: {
1181
+ data: {
1182
+ customer: {
1183
+ purchase_order_approval_rule_metadata: {
1184
+ available_applies_to: {
1185
+ id: string;
1186
+ name: string;
1187
+ users_count: number;
1188
+ permissions: {
1189
+ id: string;
1190
+ sort_order: number;
1191
+ text: string;
1192
+ }[];
1193
+ }[];
1194
+ available_requires_approval_from: never[];
1195
+ };
1196
+ };
1197
+ };
1198
+ };
1199
+ export declare const mockGetPurchaseOrderApprovalRuleMetadataNullsSnakeCase: {
1200
+ data: {
1201
+ customer: {
1202
+ purchase_order_approval_rule_metadata: {
1203
+ available_applies_to: {
1204
+ id: null;
1205
+ name: null;
1206
+ users_count: null;
1207
+ permissions: {
1208
+ id: null;
1209
+ sort_order: null;
1210
+ text: null;
1211
+ children: null;
1212
+ }[];
1213
+ }[];
1214
+ available_requires_approval_from: {
1215
+ id: null;
1216
+ name: null;
1217
+ users_count: null;
1218
+ }[];
1219
+ };
1220
+ };
1221
+ };
1222
+ };
1223
+ export declare const mockGetPurchaseOrderApprovalRuleMetadataUndefinedSnakeCase: {
1224
+ data: {
1225
+ customer: {
1226
+ purchase_order_approval_rule_metadata: {
1227
+ available_applies_to: {
1228
+ id: undefined;
1229
+ name: undefined;
1230
+ users_count: undefined;
1231
+ permissions: {
1232
+ id: undefined;
1233
+ sort_order: undefined;
1234
+ text: undefined;
1235
+ children: undefined;
1236
+ }[];
1237
+ }[];
1238
+ available_requires_approval_from: {
1239
+ id: undefined;
1240
+ name: undefined;
1241
+ users_count: undefined;
1242
+ }[];
1243
+ };
1244
+ };
1245
+ };
1246
+ };
1247
+ export declare const mockGetPurchaseOrderApprovalRuleMetadataMissingMetadataSnakeCase: {
1248
+ data: {
1249
+ customer: {
1250
+ purchase_order_approval_rule_metadata: null;
1251
+ };
1252
+ };
1253
+ };
1254
+ export declare const mockGetPurchaseOrderApprovalRuleMetadataNoCustomerSnakeCase: {
1255
+ data: {
1256
+ customer: null;
1257
+ };
1258
+ };
1259
+ export declare const mockGetPurchaseOrderApprovalRuleMetadataNoDataSnakeCase: {
1260
+ data: null;
1261
+ };
1262
+ export declare const mockGetPurchaseOrderApprovalRuleMetadataEmptyArraysSnakeCase: {
1263
+ data: {
1264
+ customer: {
1265
+ purchase_order_approval_rule_metadata: {
1266
+ available_applies_to: never[];
1267
+ available_requires_approval_from: never[];
1268
+ };
1269
+ };
1270
+ };
1271
+ };
1272
+ export declare const mockGetPurchaseOrderApprovalRuleMetadataEmptyPermissionsSnakeCase: {
1273
+ data: {
1274
+ customer: {
1275
+ purchase_order_approval_rule_metadata: {
1276
+ available_applies_to: {
1277
+ id: string;
1278
+ name: string;
1279
+ users_count: number;
1280
+ permissions: never[];
1281
+ }[];
1282
+ available_requires_approval_from: never[];
1283
+ };
1284
+ };
1285
+ };
1286
+ };
1287
+ export declare const mockGetPurchaseOrderApprovalRuleMetadataNullPermissionsSnakeCase: {
1288
+ data: {
1289
+ customer: {
1290
+ purchase_order_approval_rule_metadata: {
1291
+ available_applies_to: {
1292
+ id: string;
1293
+ name: string;
1294
+ users_count: number;
1295
+ permissions: null;
1296
+ }[];
1297
+ available_requires_approval_from: never[];
1298
+ };
1299
+ };
1300
+ };
1301
+ };
1302
+ export declare const mockGetPurchaseOrderApprovalRuleMetadataComplexStructureSnakeCase: {
1303
+ data: {
1304
+ customer: {
1305
+ purchase_order_approval_rule_metadata: {
1306
+ available_applies_to: {
1307
+ id: string;
1308
+ name: string;
1309
+ users_count: number;
1310
+ permissions: {
1311
+ id: string;
1312
+ sort_order: number;
1313
+ text: string;
1314
+ children: {
1315
+ id: string;
1316
+ sort_order: number;
1317
+ text: string;
1318
+ children: {
1319
+ id: string;
1320
+ sort_order: number;
1321
+ text: string;
1322
+ }[];
1323
+ }[];
1324
+ }[];
1325
+ }[];
1326
+ available_requires_approval_from: {
1327
+ id: string;
1328
+ name: string;
1329
+ users_count: number;
1330
+ }[];
1331
+ };
1332
+ };
1333
+ };
1334
+ };
1335
+ export declare const mockGetPurchaseOrderFullDataSnakeCase: {
1336
+ data: {
1337
+ customer: {
1338
+ purchase_order: {
1339
+ uid: string;
1340
+ number: string;
1341
+ status: string;
1342
+ created_at: string;
1343
+ updated_at: string;
1344
+ available_actions: string[];
1345
+ comments: {
1346
+ uid: string;
1347
+ author: {
1348
+ firstname: string;
1349
+ lastname: string;
1350
+ email: string;
1351
+ };
1352
+ text: string;
1353
+ created_at: string;
1354
+ }[];
1355
+ created_by: {
1356
+ firstname: string;
1357
+ lastname: string;
1358
+ email: string;
1359
+ };
1360
+ order: {
1361
+ id: string;
1362
+ number: string;
1363
+ total: {
1364
+ grand_total: {
1365
+ value: number;
1366
+ currency: string;
1367
+ };
1368
+ };
1369
+ };
1370
+ quote: {
1371
+ id: string;
1372
+ prices: {
1373
+ grand_total: {
1374
+ value: number;
1375
+ currency: string;
1376
+ };
1377
+ };
1378
+ };
1379
+ };
1380
+ };
1381
+ };
1382
+ };
1383
+ export declare const mockGetPurchaseOrderMinimalDataSnakeCase: {
1384
+ data: {
1385
+ customer: {
1386
+ purchase_order: {
1387
+ uid: string;
1388
+ number: string;
1389
+ status: string;
1390
+ created_at: string;
1391
+ updated_at: string;
1392
+ available_actions: never[];
1393
+ comments: never[];
1394
+ };
1395
+ };
1396
+ };
1397
+ };
1398
+ export declare const mockGetPurchaseOrderNullDataSnakeCase: {
1399
+ data: {
1400
+ customer: {
1401
+ purchase_order: {
1402
+ __typename: null;
1403
+ uid: null;
1404
+ number: null;
1405
+ created_at: null;
1406
+ updated_at: null;
1407
+ status: null;
1408
+ approval_flow: null;
1409
+ available_actions: null;
1410
+ comments: null;
1411
+ created_by: null;
1412
+ history_log: null;
1413
+ order: null;
1414
+ quote: null;
1415
+ };
1416
+ };
1417
+ };
1418
+ };
1419
+ export declare const mockGetPurchaseOrderIncompleteCommentsSnakeCase: {
1420
+ data: {
1421
+ customer: {
1422
+ purchase_order: {
1423
+ uid: string;
1424
+ number: string;
1425
+ status: string;
1426
+ created_at: string;
1427
+ updated_at: string;
1428
+ available_actions: string[];
1429
+ comments: ({
1430
+ uid: null;
1431
+ author: null;
1432
+ text: null;
1433
+ created_at: null;
1434
+ } | {
1435
+ uid: string;
1436
+ author: {
1437
+ firstname: null;
1438
+ lastname: null;
1439
+ email: null;
1440
+ };
1441
+ text: string;
1442
+ created_at: string;
1443
+ })[];
1444
+ };
1445
+ };
1446
+ };
1447
+ };
1448
+ export declare const mockGetPurchaseOrderNoDataSnakeCase: {
1449
+ data: null;
1450
+ };
1451
+ export declare const mockGetPurchaseOrderNoCustomerSnakeCase: {
1452
+ data: {
1453
+ customer: null;
1454
+ };
1455
+ };
1456
+ export declare const mockGetPurchaseOrderNoPurchaseOrderSnakeCase: {
1457
+ data: {
1458
+ customer: {
1459
+ purchase_order: null;
1460
+ };
1461
+ };
1462
+ };
1463
+ export declare const mockGetPurchaseOrdersEmptyDataSnakeCase: {
1464
+ data: {
1465
+ customer: {
1466
+ purchase_orders: {
1467
+ total_count: number;
1468
+ page_info: {
1469
+ total_pages: number;
1470
+ current_page: number;
1471
+ page_size: number;
1472
+ };
1473
+ items: never[];
1474
+ };
1475
+ };
1476
+ };
1477
+ };
1478
+ export declare const mockGetPurchaseOrdersIncompleteDataSnakeCase: {
1479
+ data: {
1480
+ customer: {
1481
+ purchase_orders: {
1482
+ total_count: number;
1483
+ page_info: {
1484
+ current_page: number;
1485
+ page_size: number;
1486
+ total_pages: number;
1487
+ };
1488
+ items: {
1489
+ uid: string;
1490
+ number: string;
1491
+ created_by: {
1492
+ firstname: string;
1493
+ lastname: string;
1494
+ email: string;
1495
+ };
1496
+ order: {
1497
+ id: string;
1498
+ total: {
1499
+ grand_total: {
1500
+ value: number;
1501
+ };
1502
+ };
1503
+ };
1504
+ quote: {
1505
+ prices: {
1506
+ grand_total: {
1507
+ currency: string;
1508
+ };
1509
+ };
1510
+ };
1511
+ }[];
1512
+ };
1513
+ };
1514
+ };
1515
+ };
1516
+ export declare const mockGetPurchaseOrdersNoDataSnakeCase: {
1517
+ data: null;
1518
+ };
1519
+ export declare const mockGetPurchaseOrdersNoCustomerSnakeCase: {
1520
+ data: {
1521
+ customer: null;
1522
+ };
1523
+ };
1524
+ export declare const mockGetPurchaseOrdersNoPurchaseOrdersSnakeCase: {
1525
+ data: {
1526
+ customer: {
1527
+ purchase_orders: null;
1528
+ };
1529
+ };
1530
+ };
1531
+ export declare const mockGetPurchaseOrdersUndefinedResponseSnakeCase: undefined;
1532
+ export declare const mockGetPurchaseOrdersNullResponseSnakeCase: null;
1533
+ export declare const mockGetPurchaseOrdersQuoteWithIdSnakeCase: {
1534
+ data: {
1535
+ customer: {
1536
+ purchase_orders: {
1537
+ total_count: number;
1538
+ page_info: {
1539
+ current_page: number;
1540
+ page_size: number;
1541
+ total_pages: number;
1542
+ };
1543
+ items: {
1544
+ uid: string;
1545
+ number: string;
1546
+ status: string;
1547
+ created_at: string;
1548
+ updated_at: string;
1549
+ available_actions: string[];
1550
+ quote: {
1551
+ id: string;
1552
+ prices: {
1553
+ grand_total: {
1554
+ value: number;
1555
+ currency: string;
1556
+ };
1557
+ };
1558
+ };
1559
+ }[];
1560
+ };
1561
+ };
1562
+ };
1563
+ };
1564
+ export declare const mockPlaceOrderForPurchaseOrderFullDataSnakeCase: {
1565
+ data: {
1566
+ placeOrderForPurchaseOrder: {
1567
+ order: {
1568
+ id: string;
1569
+ number: string;
1570
+ email: string;
1571
+ status: string;
1572
+ order_date: string;
1573
+ order_status_change_date: string;
1574
+ token: string;
1575
+ carrier: string;
1576
+ shipping_method: string;
1577
+ is_virtual: boolean;
1578
+ gift_receipt_included: boolean;
1579
+ printed_card_included: boolean;
1580
+ gift_message: string;
1581
+ applied_coupons: {
1582
+ code: string;
1583
+ label: string;
1584
+ }[];
1585
+ applied_gift_cards: {
1586
+ code: string;
1587
+ applied_balance: {
1588
+ value: number;
1589
+ currency: string;
1590
+ };
1591
+ current_balance: {
1592
+ value: number;
1593
+ currency: string;
1594
+ };
1595
+ }[];
1596
+ available_actions: string[];
1597
+ billing_address: {
1598
+ city: string;
1599
+ country: {
1600
+ code: string;
1601
+ label: string;
1602
+ };
1603
+ firstname: string;
1604
+ lastname: string;
1605
+ postcode: string;
1606
+ region: {
1607
+ code: string;
1608
+ label: string;
1609
+ region_id: number;
1610
+ };
1611
+ street: string[];
1612
+ telephone: string;
1613
+ };
1614
+ shipping_address: {
1615
+ city: string;
1616
+ country: {
1617
+ code: string;
1618
+ label: string;
1619
+ };
1620
+ firstname: string;
1621
+ lastname: string;
1622
+ postcode: string;
1623
+ region: {
1624
+ code: string;
1625
+ label: string;
1626
+ region_id: number;
1627
+ };
1628
+ street: string[];
1629
+ telephone: string;
1630
+ };
1631
+ customer_info: {
1632
+ firstname: string;
1633
+ lastname: string;
1634
+ email: string;
1635
+ };
1636
+ payment_methods: {
1637
+ name: string;
1638
+ type: string;
1639
+ additional_data: {
1640
+ last_four: string;
1641
+ card_type: string;
1642
+ };
1643
+ }[];
1644
+ shipments: {
1645
+ id: string;
1646
+ number: string;
1647
+ tracking: {
1648
+ number: string;
1649
+ carrier: string;
1650
+ title: string;
1651
+ }[];
1652
+ comments: {
1653
+ message: string;
1654
+ timestamp: string;
1655
+ }[];
1656
+ items: {
1657
+ id: string;
1658
+ product_name: string;
1659
+ product_sku: string;
1660
+ quantity_shipped: number;
1661
+ }[];
1662
+ }[];
1663
+ total: {
1664
+ base_grand_total: {
1665
+ value: number;
1666
+ currency: string;
1667
+ };
1668
+ grand_total: {
1669
+ value: number;
1670
+ currency: string;
1671
+ };
1672
+ subtotal: {
1673
+ value: number;
1674
+ currency: string;
1675
+ };
1676
+ total_tax: {
1677
+ value: number;
1678
+ currency: string;
1679
+ };
1680
+ total_shipping: {
1681
+ value: number;
1682
+ currency: string;
1683
+ };
1684
+ discounts: {
1685
+ label: string;
1686
+ amount: {
1687
+ value: number;
1688
+ currency: string;
1689
+ };
1690
+ }[];
1691
+ };
1692
+ comments: string[];
1693
+ custom_attributes: {
1694
+ attribute_code: string;
1695
+ value: string;
1696
+ }[];
1697
+ credit_memos: never[];
1698
+ invoices: never[];
1699
+ items_eligible_for_return: never[];
1700
+ returns: null;
1701
+ gift_wrapping: null;
1702
+ items: {
1703
+ id: string;
1704
+ product_name: string;
1705
+ product_sku: string;
1706
+ quantity_ordered: number;
1707
+ quantity_shipped: number;
1708
+ quantity_canceled: number;
1709
+ quantity_invoiced: number;
1710
+ quantity_refunded: number;
1711
+ quantity_returned: number;
1712
+ status: string;
1713
+ selected_options: {
1714
+ label: string;
1715
+ value: string;
1716
+ }[];
1717
+ entered_options: {
1718
+ label: string;
1719
+ value: string;
1720
+ }[];
1721
+ }[];
1722
+ };
1723
+ };
1724
+ };
1725
+ };
1726
+ export declare const mockPlaceOrderForPurchaseOrderMinimalDataSnakeCase: {
1727
+ data: {
1728
+ placeOrderForPurchaseOrder: {
1729
+ order: {
1730
+ id: string;
1731
+ number: string;
1732
+ email: string;
1733
+ status: string;
1734
+ order_date: string;
1735
+ token: string;
1736
+ is_virtual: boolean;
1737
+ gift_receipt_included: boolean;
1738
+ printed_card_included: boolean;
1739
+ applied_coupons: never[];
1740
+ applied_gift_cards: never[];
1741
+ available_actions: never[];
1742
+ items: never[];
1743
+ shipments: never[];
1744
+ payment_methods: never[];
1745
+ comments: never[];
1746
+ custom_attributes: never[];
1747
+ credit_memos: never[];
1748
+ invoices: never[];
1749
+ items_eligible_for_return: never[];
1750
+ };
1751
+ };
1752
+ };
1753
+ };
1754
+ export declare const mockPlaceOrderForPurchaseOrderNullDataSnakeCase: {
1755
+ data: {
1756
+ placeOrderForPurchaseOrder: {
1757
+ order: {
1758
+ id: null;
1759
+ number: null;
1760
+ email: null;
1761
+ status: null;
1762
+ order_date: null;
1763
+ order_status_change_date: null;
1764
+ token: null;
1765
+ carrier: null;
1766
+ shipping_method: null;
1767
+ is_virtual: null;
1768
+ gift_receipt_included: null;
1769
+ printed_card_included: null;
1770
+ gift_message: null;
1771
+ applied_coupons: null;
1772
+ applied_gift_cards: null;
1773
+ available_actions: null;
1774
+ billing_address: null;
1775
+ shipping_address: null;
1776
+ customer_info: null;
1777
+ payment_methods: null;
1778
+ shipments: null;
1779
+ total: null;
1780
+ comments: null;
1781
+ custom_attributes: null;
1782
+ credit_memos: null;
1783
+ invoices: null;
1784
+ items_eligible_for_return: null;
1785
+ returns: null;
1786
+ gift_wrapping: null;
1787
+ items: null;
1788
+ };
1789
+ };
1790
+ };
1791
+ };
1792
+ export declare const mockPlaceOrderForPurchaseOrderNoDataSnakeCase: {
1793
+ data: null;
1794
+ };
1795
+ export declare const mockPlaceOrderForPurchaseOrderNoPlaceOrderSnakeCase: {
1796
+ data: {
1797
+ placeOrderForPurchaseOrder: null;
1798
+ };
1799
+ };
1800
+ export declare const mockPlaceOrderForPurchaseOrderNoOrderSnakeCase: {
1801
+ data: {
1802
+ placeOrderForPurchaseOrder: {
1803
+ order: null;
1804
+ };
1805
+ };
1806
+ };
1807
+ export declare const mockPlaceOrderForPurchaseOrderEmptyArraysSnakeCase: {
1808
+ data: {
1809
+ placeOrderForPurchaseOrder: {
1810
+ order: {
1811
+ id: string;
1812
+ number: string;
1813
+ email: string;
1814
+ status: string;
1815
+ order_date: string;
1816
+ applied_coupons: never[];
1817
+ applied_gift_cards: never[];
1818
+ available_actions: never[];
1819
+ items: never[];
1820
+ shipments: never[];
1821
+ payment_methods: never[];
1822
+ comments: never[];
1823
+ custom_attributes: never[];
1824
+ credit_memos: never[];
1825
+ invoices: never[];
1826
+ items_eligible_for_return: never[];
1827
+ };
1828
+ };
1829
+ };
1830
+ };
1831
+ export declare const mockPlaceOrderForPurchaseOrderUndefinedResponseSnakeCase: undefined;
1832
+ export declare const mockPlaceOrderForPurchaseOrderNullResponseSnakeCase: null;
1833
+ export declare const mockPlaceOrderForPurchaseOrderPartialAddressSnakeCase: {
1834
+ data: {
1835
+ placeOrderForPurchaseOrder: {
1836
+ order: {
1837
+ id: string;
1838
+ billing_address: {
1839
+ firstname: string;
1840
+ city: string;
1841
+ postcode: string;
1842
+ telephone: string;
1843
+ };
1844
+ shipping_address: null;
1845
+ };
1846
+ };
1847
+ };
1848
+ };
1849
+ export declare const mockPlaceOrderForPurchaseOrderPartialPaymentSnakeCase: {
1850
+ data: {
1851
+ placeOrderForPurchaseOrder: {
1852
+ order: {
1853
+ id: string;
1854
+ payment_methods: ({
1855
+ name: string;
1856
+ } | null)[];
1857
+ };
1858
+ };
1859
+ };
1860
+ };
1861
+ export declare const mockPlaceOrderForPurchaseOrderPartialShipmentSnakeCase: {
1862
+ data: {
1863
+ placeOrderForPurchaseOrder: {
1864
+ order: {
1865
+ id: string;
1866
+ shipments: {
1867
+ id: string;
1868
+ tracking: null;
1869
+ comments: undefined;
1870
+ items: {
1871
+ id: string;
1872
+ }[];
1873
+ }[];
1874
+ };
1875
+ };
1876
+ };
1877
+ };
1878
+ export declare const mockPlaceOrderForPurchaseOrderPartialItemSnakeCase: {
1879
+ data: {
1880
+ placeOrderForPurchaseOrder: {
1881
+ order: {
1882
+ id: string;
1883
+ items: {
1884
+ id: string;
1885
+ }[];
1886
+ };
1887
+ };
1888
+ };
1889
+ };
1890
+ export declare const mockPlaceOrderForPurchaseOrderPartialTotalSnakeCase: {
1891
+ data: {
1892
+ placeOrderForPurchaseOrder: {
1893
+ order: {
1894
+ id: string;
1895
+ total: {
1896
+ grand_total: null;
1897
+ subtotal: undefined;
1898
+ total_tax: null;
1899
+ total_shipping: undefined;
1900
+ discounts: null;
1901
+ };
1902
+ };
1903
+ };
1904
+ };
1905
+ };
1906
+ export declare const mockPlaceOrderForPurchaseOrderNullArraysSnakeCase: {
1907
+ data: {
1908
+ placeOrderForPurchaseOrder: {
1909
+ order: {
1910
+ id: string;
1911
+ applied_coupons: null;
1912
+ applied_gift_cards: null;
1913
+ available_actions: null;
1914
+ items: null;
1915
+ shipments: null;
1916
+ payment_methods: null;
1917
+ comments: null;
1918
+ custom_attributes: null;
1919
+ credit_memos: null;
1920
+ invoices: null;
1921
+ items_eligible_for_return: null;
1922
+ };
1923
+ };
1924
+ };
1925
+ };
1926
+ export declare const mockPlacePurchaseOrderFullDataSnakeCase: {
1927
+ placePurchaseOrder: {
1928
+ purchase_order: {
1929
+ uid: string;
1930
+ number: string;
1931
+ status: string;
1932
+ created_at: string;
1933
+ updated_at: string;
1934
+ approval_flow: {
1935
+ status: string;
1936
+ rule: {
1937
+ name: string;
1938
+ };
1939
+ }[];
1940
+ available_actions: string[];
1941
+ comments: {
1942
+ uid: string;
1943
+ text: string;
1944
+ created_at: string;
1945
+ author: {
1946
+ firstname: string;
1947
+ lastname: string;
1948
+ email: string;
1949
+ };
1950
+ }[];
1951
+ created_by: {
1952
+ firstname: string;
1953
+ lastname: string;
1954
+ email: string;
1955
+ };
1956
+ history_log: {
1957
+ activity: string;
1958
+ date: string;
1959
+ author: {
1960
+ firstname: string;
1961
+ lastname: string;
1962
+ };
1963
+ }[];
1964
+ order: {
1965
+ id: string;
1966
+ number: string;
1967
+ is_virtual: boolean;
1968
+ applied_coupons: never[];
1969
+ applied_gift_cards: never[];
1970
+ billing_address: {
1971
+ firstname: string;
1972
+ lastname: string;
1973
+ };
1974
+ shipping_address: {
1975
+ firstname: string;
1976
+ lastname: string;
1977
+ };
1978
+ total: {
1979
+ grand_total: {
1980
+ value: number;
1981
+ currency: string;
1982
+ };
1983
+ };
1984
+ };
1985
+ quote: null;
1986
+ };
1987
+ };
1988
+ };
1989
+ export declare const mockPlacePurchaseOrderMinimalDataSnakeCase: {
1990
+ placePurchaseOrder: {
1991
+ purchase_order: {
1992
+ uid: string;
1993
+ number: string;
1994
+ status: string;
1995
+ created_at: string;
1996
+ updated_at: string;
1997
+ approval_flow: never[];
1998
+ available_actions: never[];
1999
+ comments: never[];
2000
+ created_by: null;
2001
+ history_log: never[];
2002
+ order: null;
2003
+ quote: null;
2004
+ };
2005
+ };
2006
+ };
2007
+ export declare const mockUpdatePurchaseOrderApprovalRuleFullDataSnakeCase: {
2008
+ data: {
2009
+ updatePurchaseOrderApprovalRule: {
2010
+ applies_to_roles: {
2011
+ id: string;
2012
+ name: string;
2013
+ users_count: number;
2014
+ permissions: {
2015
+ id: string;
2016
+ sort_order: number;
2017
+ text: string;
2018
+ }[];
2019
+ }[];
2020
+ approver_roles: {
2021
+ id: string;
2022
+ name: string;
2023
+ users_count: number;
2024
+ permissions: {
2025
+ id: string;
2026
+ sort_order: number;
2027
+ text: string;
2028
+ }[];
2029
+ }[];
2030
+ condition: {
2031
+ attribute: string;
2032
+ operator: string;
2033
+ };
2034
+ created_at: string;
2035
+ created_by: {
2036
+ firstname: string;
2037
+ lastname: string;
2038
+ email: string;
2039
+ };
2040
+ description: string;
2041
+ name: string;
2042
+ status: string;
2043
+ uid: string;
2044
+ updated_at: string;
2045
+ };
2046
+ };
2047
+ };
2048
+ export declare const mockUpdatePurchaseOrderApprovalRuleMinimalDataSnakeCase: {
2049
+ data: {
2050
+ updatePurchaseOrderApprovalRule: {
2051
+ applies_to_roles: never[];
2052
+ approver_roles: never[];
2053
+ condition: {
2054
+ attribute: string;
2055
+ operator: string;
2056
+ };
2057
+ created_at: string;
2058
+ created_by: null;
2059
+ description: string;
2060
+ name: string;
2061
+ status: string;
2062
+ uid: string;
2063
+ updated_at: string;
2064
+ };
2065
+ };
2066
+ };
2067
+ export declare const mockUpdatePurchaseOrderApprovalRuleNullDataSnakeCase: {
2068
+ data: {
2069
+ updatePurchaseOrderApprovalRule: {
2070
+ applies_to_roles: null;
2071
+ approver_roles: null;
2072
+ condition: null;
2073
+ created_at: null;
2074
+ created_by: null;
2075
+ description: null;
2076
+ name: null;
2077
+ status: null;
2078
+ uid: null;
2079
+ updated_at: null;
2080
+ };
2081
+ };
2082
+ };
2083
+ export declare const mockUpdatePurchaseOrderApprovalRuleNoDataSnakeCase: {
2084
+ data: undefined;
2085
+ };
2086
+ export declare const mockUpdatePurchaseOrderApprovalRulePartialRolesSnakeCase: {
2087
+ data: {
2088
+ updatePurchaseOrderApprovalRule: {
2089
+ applies_to_roles: {
2090
+ id: string;
2091
+ name: string;
2092
+ users_count: undefined;
2093
+ permissions: undefined;
2094
+ }[];
2095
+ approver_roles: {
2096
+ id: string;
2097
+ name: string;
2098
+ users_count: number;
2099
+ permissions: {
2100
+ id: string;
2101
+ sort_order: undefined;
2102
+ text: string;
2103
+ }[];
2104
+ }[];
2105
+ condition: {
2106
+ attribute: string;
2107
+ operator: string;
2108
+ };
2109
+ created_at: string;
2110
+ created_by: null;
2111
+ description: string;
2112
+ name: string;
2113
+ status: string;
2114
+ uid: string;
2115
+ updated_at: string;
2116
+ };
2117
+ };
2118
+ };
2119
+ export declare const mockValidatePurchaseOrdersUndefinedValuesDataSnakeCase: {
2120
+ data: {
2121
+ validatePurchaseOrders: {
2122
+ errors: never[];
2123
+ purchase_orders: {
2124
+ uid: string;
2125
+ number: string;
2126
+ created_at: string;
2127
+ updated_at: string;
2128
+ status: string;
2129
+ available_actions: undefined;
2130
+ }[];
2131
+ };
2132
+ };
2133
+ };
2134
+ export declare const mockValidatePurchaseOrdersMixedDataSnakeCase: {
2135
+ data: {
2136
+ validatePurchaseOrders: {
2137
+ errors: {
2138
+ message: string;
2139
+ type: string;
2140
+ }[];
2141
+ purchase_orders: {
2142
+ uid: string;
2143
+ number: string;
2144
+ created_at: string;
2145
+ updated_at: string;
2146
+ status: string;
2147
+ available_actions: string[];
2148
+ }[];
2149
+ };
2150
+ };
2151
+ };
2152
+ export declare const mockValidatePurchaseOrdersComplexDataSnakeCase: {
2153
+ data: {
2154
+ validatePurchaseOrders: {
2155
+ errors: never[];
2156
+ purchase_orders: {
2157
+ __typename: string;
2158
+ approval_flow: {
2159
+ status: string;
2160
+ steps: {
2161
+ step: number;
2162
+ approver: string;
2163
+ status: string;
2164
+ timestamp: string;
2165
+ }[];
2166
+ };
2167
+ available_actions: string[];
2168
+ comments: {
2169
+ uid: string;
2170
+ author: {
2171
+ firstname: string;
2172
+ lastname: string;
2173
+ email: string;
2174
+ };
2175
+ message: string;
2176
+ timestamp: string;
2177
+ }[];
2178
+ created_at: string;
2179
+ created_by: {
2180
+ id: string;
2181
+ firstname: string;
2182
+ lastname: string;
2183
+ email: string;
2184
+ department: string;
2185
+ };
2186
+ history_log: {
2187
+ action: string;
2188
+ timestamp: string;
2189
+ user: string;
2190
+ }[];
2191
+ number: string;
2192
+ order: null;
2193
+ quote: {
2194
+ uid: string;
2195
+ number: string;
2196
+ total: {
2197
+ value: number;
2198
+ currency: string;
2199
+ };
2200
+ items: {
2201
+ sku: string;
2202
+ name: string;
2203
+ quantity: number;
2204
+ unit_price: number;
2205
+ total_price: number;
2206
+ }[];
2207
+ };
2208
+ status: string;
2209
+ uid: string;
2210
+ updated_at: string;
2211
+ }[];
2212
+ };
2213
+ };
2214
+ };
2215
+ export declare const mockValidatePurchaseOrdersErrorMissingFieldsDataSnakeCase: {
2216
+ data: {
2217
+ validatePurchaseOrders: {
2218
+ errors: ({
2219
+ message?: undefined;
2220
+ type?: undefined;
2221
+ } | {
2222
+ message: string;
2223
+ type?: undefined;
2224
+ } | {
2225
+ type: string;
2226
+ message?: undefined;
2227
+ })[];
2228
+ purchase_orders: never[];
2229
+ };
2230
+ };
2231
+ };
2232
+ export declare const mockValidatePurchaseOrdersMissingFieldsDataSnakeCase: {
2233
+ data: {
2234
+ validatePurchaseOrders: {
2235
+ errors: never[];
2236
+ purchase_orders: ({
2237
+ uid: string;
2238
+ __typename?: undefined;
2239
+ number?: undefined;
2240
+ } | {
2241
+ __typename: string;
2242
+ uid: string;
2243
+ number: string;
2244
+ })[];
2245
+ };
2246
+ };
2247
+ };
2248
+ export declare const mockAddPurchaseOrderCommentRequest: {
2249
+ purchaseOrderUid: string;
2250
+ comment: string;
2251
+ };
2252
+ export declare const mockAddPurchaseOrderCommentResponse: {
2253
+ data: {
2254
+ addPurchaseOrderComment: {
2255
+ comment: {
2256
+ created_at: string;
2257
+ text: string;
2258
+ uid: string;
2259
+ author: {
2260
+ allow_remote_shopping_assistance: boolean;
2261
+ confirmation_status: string;
2262
+ created_at: string;
2263
+ date_of_birth: string;
2264
+ email: string;
2265
+ firstname: string;
2266
+ gender: number;
2267
+ job_title: string;
2268
+ lastname: string;
2269
+ middlename: string;
2270
+ prefix: string;
2271
+ suffix: string;
2272
+ telephone: string;
2273
+ };
2274
+ };
2275
+ };
2276
+ };
2277
+ };
2278
+ export declare const mockTransformedAddPurchaseOrderComment: {
2279
+ createdAt: string;
2280
+ text: string;
2281
+ uid: string;
2282
+ author: {
2283
+ allowRemoteShoppingAssistance: boolean;
2284
+ confirmationStatus: string;
2285
+ createdAt: string;
2286
+ dateOfBirth: string;
2287
+ email: string;
2288
+ firstname: string;
2289
+ gender: number;
2290
+ jobTitle: string;
2291
+ lastname: string;
2292
+ middlename: string;
2293
+ prefix: string;
2294
+ status: string;
2295
+ structureId: string;
2296
+ suffix: string;
2297
+ telephone: string;
2298
+ };
2299
+ };
2300
+ export declare const mockTransformPurchaseOrderApprovalRuleFullData: {
2301
+ uid: string;
2302
+ name: string;
2303
+ description: string;
2304
+ status: string;
2305
+ created_at: string;
2306
+ updated_at: string;
2307
+ created_by: {
2308
+ firstname: string;
2309
+ lastname: string;
2310
+ email: string;
2311
+ };
2312
+ applies_to_roles: {
2313
+ id: string;
2314
+ name: string;
2315
+ users_count: number;
2316
+ permissions: {
2317
+ id: string;
2318
+ sort_order: number;
2319
+ text: string;
2320
+ }[];
2321
+ }[];
2322
+ approver_roles: {
2323
+ id: string;
2324
+ name: string;
2325
+ users_count: number;
2326
+ permissions: {
2327
+ id: string;
2328
+ sort_order: number;
2329
+ text: string;
2330
+ }[];
2331
+ }[];
2332
+ condition: {
2333
+ attribute: string;
2334
+ operator: string;
2335
+ };
2336
+ };
2337
+ export declare const mockTransformPurchaseOrderApprovalRulePartialData: {
2338
+ uid: string;
2339
+ name: string;
2340
+ description: string;
2341
+ status: string;
2342
+ created_at: string;
2343
+ updated_at: string;
2344
+ created_by: null;
2345
+ applies_to_roles: never[];
2346
+ approver_roles: never[];
2347
+ condition: {
2348
+ attribute: string;
2349
+ operator: string;
2350
+ };
2351
+ };
2352
+ export declare const mockTransformPurchaseOrderApprovalRuleMinimalData: {
2353
+ uid: string;
2354
+ name: string;
2355
+ };
2356
+ export declare const mockTransformPurchaseOrderApprovalRuleEmptyData: {};
2357
+ export declare const mockCreatePurchaseOrderApprovalRuleBasicResponse: {
2358
+ data: {
2359
+ createPurchaseOrderApprovalRule: {
2360
+ uid: string;
2361
+ name: string;
2362
+ description: string;
2363
+ status: string;
2364
+ created_at: string;
2365
+ updated_at: string;
2366
+ created_by: {
2367
+ name: string;
2368
+ };
2369
+ applies_to_roles: {
2370
+ id: string;
2371
+ name: string;
2372
+ users_count: number;
2373
+ permissions: never[];
2374
+ }[];
2375
+ approver_roles: {
2376
+ id: string;
2377
+ name: string;
2378
+ users_count: number;
2379
+ permissions: never[];
2380
+ }[];
2381
+ condition: {
2382
+ attribute: string;
2383
+ operator: string;
2384
+ };
2385
+ };
2386
+ };
2387
+ };
2388
+ export declare const mockCreatePurchaseOrderApprovalRuleQuantityResponse: {
2389
+ data: {
2390
+ createPurchaseOrderApprovalRule: {
2391
+ uid: string;
2392
+ name: string;
2393
+ status: string;
2394
+ created_at: string;
2395
+ updated_at: string;
2396
+ created_by: {
2397
+ name: string;
2398
+ };
2399
+ applies_to_roles: never[];
2400
+ approver_roles: never[];
2401
+ condition: {
2402
+ attribute: string;
2403
+ operator: string;
2404
+ };
2405
+ };
2406
+ };
2407
+ };
2408
+ export declare const mockCreatePurchaseOrderApprovalRuleShippingResponse: {
2409
+ data: {
2410
+ createPurchaseOrderApprovalRule: {
2411
+ uid: string;
2412
+ name: string;
2413
+ status: string;
2414
+ created_at: string;
2415
+ updated_at: string;
2416
+ created_by: {
2417
+ name: string;
2418
+ };
2419
+ applies_to_roles: never[];
2420
+ approver_roles: never[];
2421
+ condition: {
2422
+ attribute: string;
2423
+ operator: string;
2424
+ };
2425
+ };
2426
+ };
2427
+ };
2428
+ export declare const mockCreatePurchaseOrderApprovalRuleErrorResponse: {
2429
+ data: {
2430
+ createPurchaseOrderApprovalRule: {
2431
+ uid: string;
2432
+ name: string;
2433
+ status: string;
2434
+ created_at: string;
2435
+ updated_at: string;
2436
+ created_by: null;
2437
+ applies_to_roles: never[];
2438
+ approver_roles: never[];
2439
+ condition: {
2440
+ attribute: string;
2441
+ operator: string;
2442
+ };
2443
+ };
2444
+ };
2445
+ errors: {
2446
+ message: string;
2447
+ extensions: {
2448
+ category: string;
2449
+ };
2450
+ }[];
2451
+ };
2452
+ export declare const mockCreatePurchaseOrderApprovalRuleMissingDataResponse: {
2453
+ data: undefined;
2454
+ };
2455
+ export declare const mockCreatePurchaseOrderApprovalRuleMissingRuleResponse: {
2456
+ data: {};
2457
+ };
2458
+ export declare const mockCreatePurchaseOrderApprovalRuleSimpleResponse: {
2459
+ data: {
2460
+ createPurchaseOrderApprovalRule: {
2461
+ uid: string;
2462
+ name: string;
2463
+ status: string;
2464
+ created_at: string;
2465
+ updated_at: string;
2466
+ created_by: {
2467
+ name: string;
2468
+ };
2469
+ applies_to_roles: never[];
2470
+ approver_roles: never[];
2471
+ condition: {
2472
+ attribute: string;
2473
+ operator: string;
2474
+ };
2475
+ };
2476
+ };
2477
+ };
2478
+ export declare const mockCreatePurchaseOrderApprovalRuleMultipleRolesResponse: {
2479
+ data: {
2480
+ createPurchaseOrderApprovalRule: {
2481
+ uid: string;
2482
+ name: string;
2483
+ status: string;
2484
+ created_at: string;
2485
+ updated_at: string;
2486
+ created_by: {
2487
+ name: string;
2488
+ };
2489
+ applies_to_roles: {
2490
+ id: string;
2491
+ name: string;
2492
+ users_count: number;
2493
+ permissions: never[];
2494
+ }[];
2495
+ approver_roles: {
2496
+ id: string;
2497
+ name: string;
2498
+ users_count: number;
2499
+ permissions: never[];
2500
+ }[];
2501
+ condition: {
2502
+ attribute: string;
2503
+ operator: string;
2504
+ };
2505
+ };
2506
+ };
2507
+ };
2508
+ export declare const mockCreatePurchaseOrderApprovalRuleLongNameResponse: {
2509
+ data: {
2510
+ createPurchaseOrderApprovalRule: {
2511
+ uid: string;
2512
+ name: string;
2513
+ status: string;
2514
+ created_at: string;
2515
+ updated_at: string;
2516
+ created_by: {
2517
+ name: string;
2518
+ };
2519
+ applies_to_roles: never[];
2520
+ approver_roles: never[];
2521
+ condition: {
2522
+ attribute: string;
2523
+ operator: string;
2524
+ };
2525
+ };
2526
+ };
2527
+ };
2528
+ export declare const mockCreatePurchaseOrderApprovalRuleSpecialCharsResponse: {
2529
+ data: {
2530
+ createPurchaseOrderApprovalRule: {
2531
+ uid: string;
2532
+ name: string;
2533
+ status: string;
2534
+ created_at: string;
2535
+ updated_at: string;
2536
+ created_by: {
2537
+ name: string;
2538
+ };
2539
+ applies_to_roles: never[];
2540
+ approver_roles: never[];
2541
+ condition: {
2542
+ attribute: string;
2543
+ operator: string;
2544
+ };
2545
+ };
2546
+ };
2547
+ };
2548
+ export declare const mockCreatePurchaseOrderApprovalRuleLargeAmountResponse: {
2549
+ data: {
2550
+ createPurchaseOrderApprovalRule: {
2551
+ uid: string;
2552
+ name: string;
2553
+ status: string;
2554
+ created_at: string;
2555
+ updated_at: string;
2556
+ created_by: {
2557
+ name: string;
2558
+ };
2559
+ applies_to_roles: never[];
2560
+ approver_roles: never[];
2561
+ condition: {
2562
+ attribute: string;
2563
+ operator: string;
2564
+ };
2565
+ };
2566
+ };
2567
+ };
2568
+ export declare const mockCreatePurchaseOrderApprovalRuleComplexResponse: {
2569
+ data: {
2570
+ createPurchaseOrderApprovalRule: {
2571
+ uid: string;
2572
+ name: string;
2573
+ description: string;
2574
+ status: string;
2575
+ created_at: string;
2576
+ updated_at: string;
2577
+ created_by: {
2578
+ name: string;
2579
+ email: string;
2580
+ };
2581
+ applies_to_roles: {
2582
+ id: string;
2583
+ name: string;
2584
+ users_count: number;
2585
+ permissions: {
2586
+ id: string;
2587
+ sort_order: number;
2588
+ text: string;
2589
+ }[];
2590
+ }[];
2591
+ approver_roles: {
2592
+ id: string;
2593
+ name: string;
2594
+ users_count: number;
2595
+ permissions: {
2596
+ id: string;
2597
+ sort_order: number;
2598
+ text: string;
2599
+ }[];
2600
+ }[];
2601
+ condition: {
2602
+ attribute: string;
2603
+ operator: string;
2604
+ };
2605
+ };
2606
+ };
2607
+ };
2608
+ export declare const mockGetPurchaseOrdersErrorSnakeCase: {
2609
+ data: {
2610
+ customer: {
2611
+ purchase_orders: {
2612
+ total_count: number;
2613
+ page_info: {
2614
+ current_page: number;
2615
+ page_size: number;
2616
+ total_pages: number;
2617
+ };
2618
+ items: never[];
2619
+ };
2620
+ };
2621
+ };
2622
+ errors: {
2623
+ message: string;
2624
+ }[];
2625
+ };
2626
+ export declare const mockGetPurchaseOrdersSuccessSnakeCase: {
2627
+ data: {
2628
+ customer: {
2629
+ purchase_orders: {
2630
+ total_count: number;
2631
+ page_info: {
2632
+ current_page: number;
2633
+ page_size: number;
2634
+ total_pages: number;
2635
+ };
2636
+ items: {
2637
+ uid: string;
2638
+ number: string;
2639
+ status: string;
2640
+ created_at: string;
2641
+ updated_at: string;
2642
+ available_actions: string[];
2643
+ created_by: {
2644
+ firstname: string;
2645
+ lastname: string;
2646
+ email: string;
2647
+ };
2648
+ order: {
2649
+ id: string;
2650
+ number: string;
2651
+ total: {
2652
+ grand_total: {
2653
+ value: number;
2654
+ currency: string;
2655
+ };
2656
+ };
2657
+ };
2658
+ quote: {
2659
+ prices: {
2660
+ grand_total: {
2661
+ value: number;
2662
+ currency: string;
2663
+ };
2664
+ };
2665
+ };
2666
+ }[];
2667
+ };
2668
+ };
2669
+ };
2670
+ };
2671
+ export declare const mockFullPermissionsResponse: {
2672
+ data: {
2673
+ customer: {
2674
+ purchase_orders_enabled: boolean;
2675
+ role: {
2676
+ id: string;
2677
+ name: string;
2678
+ permissions: {
2679
+ id: string;
2680
+ text: string;
2681
+ sort_order: number;
2682
+ children: {
2683
+ id: string;
2684
+ text: string;
2685
+ sort_order: number;
2686
+ children: {
2687
+ id: string;
2688
+ text: string;
2689
+ sort_order: number;
2690
+ children: {
2691
+ id: string;
2692
+ text: string;
2693
+ sort_order: number;
2694
+ children: never[];
2695
+ }[];
2696
+ }[];
2697
+ }[];
2698
+ }[];
2699
+ };
2700
+ };
2701
+ };
2702
+ };
2703
+ export declare const mockPartialPermissionsResponse: {
2704
+ data: {
2705
+ customer: {
2706
+ purchase_orders_enabled: boolean;
2707
+ role: {
2708
+ id: string;
2709
+ name: string;
2710
+ permissions: {
2711
+ id: string;
2712
+ text: string;
2713
+ sort_order: number;
2714
+ children: never[];
2715
+ }[];
2716
+ };
2717
+ };
2718
+ };
2719
+ };
2720
+ export declare const mockEmptyPermissionsResponse: {
2721
+ data: {
2722
+ customer: {
2723
+ purchase_orders_enabled: boolean;
2724
+ role: {
2725
+ id: string;
2726
+ name: string;
2727
+ permissions: never[];
2728
+ };
2729
+ };
2730
+ };
2731
+ };
2732
+ export declare const mockNullResponse: {
2733
+ data: {
2734
+ customer: {
2735
+ purchase_orders_enabled: null;
2736
+ role: {
2737
+ id: any;
2738
+ name: any;
2739
+ permissions: any;
2740
+ };
2741
+ };
2742
+ };
2743
+ };
2744
+ export declare const mockUndefinedResponse: {
2745
+ data: {
2746
+ customer: {
2747
+ purchase_orders_enabled: undefined;
2748
+ role: {
2749
+ id: any;
2750
+ name: any;
2751
+ permissions: any;
2752
+ };
2753
+ };
2754
+ };
2755
+ };
2756
+ export declare const mockNoCustomerResponse: {
2757
+ data: {
2758
+ customer: any;
2759
+ };
2760
+ };
2761
+ export declare const mockNoDataResponse: {
2762
+ data: any;
2763
+ };
2764
+ export declare const mockNoResponseData: any;
2765
+ export declare const mockNullRoleResponse: {
2766
+ data: {
2767
+ customer: {
2768
+ purchase_orders_enabled: boolean;
2769
+ role: null;
2770
+ };
2771
+ };
2772
+ };
2773
+ export declare const mockGetPurchaseOrdersFullDataSnakeCase: {
2774
+ data: {
2775
+ customer: {
2776
+ purchase_orders: {
2777
+ total_count: number;
2778
+ page_info: {
2779
+ current_page: number;
2780
+ page_size: number;
2781
+ total_pages: number;
2782
+ };
2783
+ items: ({
2784
+ uid: string;
2785
+ number: string;
2786
+ status: string;
2787
+ created_at: string;
2788
+ updated_at: string;
2789
+ available_actions: string[];
2790
+ created_by: {
2791
+ firstname: string;
2792
+ lastname: string;
2793
+ email: string;
2794
+ };
2795
+ order: {
2796
+ id: string;
2797
+ number: string;
2798
+ total: {
2799
+ grand_total: {
2800
+ value: number;
2801
+ currency: string;
2802
+ };
2803
+ };
2804
+ };
2805
+ quote: {
2806
+ prices: {
2807
+ grand_total: {
2808
+ value: number;
2809
+ currency: string;
2810
+ };
2811
+ };
2812
+ };
2813
+ } | {
2814
+ uid: string;
2815
+ number: string;
2816
+ status: string;
2817
+ created_at: string;
2818
+ updated_at: string;
2819
+ available_actions: string[];
2820
+ created_by: {
2821
+ firstname: string;
2822
+ lastname: string;
2823
+ email: string;
2824
+ };
2825
+ order?: undefined;
2826
+ quote?: undefined;
2827
+ })[];
2828
+ };
2829
+ };
2830
+ };
2831
+ };
2832
+ //# sourceMappingURL=index.d.ts.map