@digital8/lighting-illusions-ts-sdk 0.0.2427 → 0.0.2429

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 (42) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/dist/apis/AuspostApi.d.ts +29 -0
  4. package/dist/apis/AuspostApi.js +125 -0
  5. package/dist/apis/OrdersApi.d.ts +13 -1
  6. package/dist/apis/OrdersApi.js +48 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AddressFrontendResource.d.ts +2 -2
  10. package/dist/models/AddressFrontendResource.js +4 -4
  11. package/dist/models/AddressResource.d.ts +1 -1
  12. package/dist/models/AddressResource.js +3 -1
  13. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  14. package/dist/models/ExternalApiLogResource.js +3 -1
  15. package/dist/models/StoreFrontendResource.d.ts +1 -1
  16. package/dist/models/StoreFrontendResource.js +1 -3
  17. package/dist/models/StoreListResource.d.ts +1 -1
  18. package/dist/models/StoreListResource.js +1 -3
  19. package/dist/models/SuburbValidationResource.d.ts +32 -0
  20. package/dist/models/SuburbValidationResource.js +51 -0
  21. package/dist/models/SuburbValidationResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/SuburbValidationResourceArrayResponse.js +50 -0
  23. package/dist/models/ValidateOrderSuburbRequest.d.ts +44 -0
  24. package/dist/models/ValidateOrderSuburbRequest.js +59 -0
  25. package/dist/models/ValidateSuburbRequest.d.ts +50 -0
  26. package/dist/models/ValidateSuburbRequest.js +63 -0
  27. package/dist/models/index.d.ts +4 -0
  28. package/dist/models/index.js +4 -0
  29. package/package.json +1 -1
  30. package/src/apis/AuspostApi.ts +69 -0
  31. package/src/apis/OrdersApi.ts +48 -0
  32. package/src/apis/index.ts +1 -0
  33. package/src/models/AddressFrontendResource.ts +5 -5
  34. package/src/models/AddressResource.ts +3 -2
  35. package/src/models/ExternalApiLogResource.ts +3 -2
  36. package/src/models/StoreFrontendResource.ts +2 -3
  37. package/src/models/StoreListResource.ts +2 -3
  38. package/src/models/SuburbValidationResource.ts +66 -0
  39. package/src/models/SuburbValidationResourceArrayResponse.ts +73 -0
  40. package/src/models/ValidateOrderSuburbRequest.ts +84 -0
  41. package/src/models/ValidateSuburbRequest.ts +93 -0
  42. package/src/models/index.ts +4 -0
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { SuburbValidationResource } from './SuburbValidationResource';
17
+ import {
18
+ SuburbValidationResourceFromJSON,
19
+ SuburbValidationResourceFromJSONTyped,
20
+ SuburbValidationResourceToJSON,
21
+ SuburbValidationResourceToJSONTyped,
22
+ } from './SuburbValidationResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SuburbValidationResourceArrayResponse
28
+ */
29
+ export interface SuburbValidationResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<SuburbValidationResource>}
33
+ * @memberof SuburbValidationResourceArrayResponse
34
+ */
35
+ data?: Array<SuburbValidationResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SuburbValidationResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfSuburbValidationResourceArrayResponse(value: object): value is SuburbValidationResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function SuburbValidationResourceArrayResponseFromJSON(json: any): SuburbValidationResourceArrayResponse {
46
+ return SuburbValidationResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SuburbValidationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(SuburbValidationResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function SuburbValidationResourceArrayResponseToJSON(json: any): SuburbValidationResourceArrayResponse {
60
+ return SuburbValidationResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function SuburbValidationResourceArrayResponseToJSONTyped(value?: SuburbValidationResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(SuburbValidationResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ValidateOrderSuburbRequest
20
+ */
21
+ export interface ValidateOrderSuburbRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ValidateOrderSuburbRequest
26
+ */
27
+ suburb: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ValidateOrderSuburbRequest
32
+ */
33
+ state: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ValidateOrderSuburbRequest
38
+ */
39
+ postcode: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the ValidateOrderSuburbRequest interface.
44
+ */
45
+ export function instanceOfValidateOrderSuburbRequest(value: object): value is ValidateOrderSuburbRequest {
46
+ if (!('suburb' in value) || value['suburb'] === undefined) return false;
47
+ if (!('state' in value) || value['state'] === undefined) return false;
48
+ if (!('postcode' in value) || value['postcode'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function ValidateOrderSuburbRequestFromJSON(json: any): ValidateOrderSuburbRequest {
53
+ return ValidateOrderSuburbRequestFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function ValidateOrderSuburbRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidateOrderSuburbRequest {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'suburb': json['suburb'],
63
+ 'state': json['state'],
64
+ 'postcode': json['postcode'],
65
+ };
66
+ }
67
+
68
+ export function ValidateOrderSuburbRequestToJSON(json: any): ValidateOrderSuburbRequest {
69
+ return ValidateOrderSuburbRequestToJSONTyped(json, false);
70
+ }
71
+
72
+ export function ValidateOrderSuburbRequestToJSONTyped(value?: ValidateOrderSuburbRequest | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'suburb': value['suburb'],
80
+ 'state': value['state'],
81
+ 'postcode': value['postcode'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ValidateSuburbRequest
20
+ */
21
+ export interface ValidateSuburbRequest {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ValidateSuburbRequest
26
+ */
27
+ siteId: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ValidateSuburbRequest
32
+ */
33
+ suburb: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ValidateSuburbRequest
38
+ */
39
+ state: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ValidateSuburbRequest
44
+ */
45
+ postcode: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the ValidateSuburbRequest interface.
50
+ */
51
+ export function instanceOfValidateSuburbRequest(value: object): value is ValidateSuburbRequest {
52
+ if (!('siteId' in value) || value['siteId'] === undefined) return false;
53
+ if (!('suburb' in value) || value['suburb'] === undefined) return false;
54
+ if (!('state' in value) || value['state'] === undefined) return false;
55
+ if (!('postcode' in value) || value['postcode'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function ValidateSuburbRequestFromJSON(json: any): ValidateSuburbRequest {
60
+ return ValidateSuburbRequestFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function ValidateSuburbRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidateSuburbRequest {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'siteId': json['site_id'],
70
+ 'suburb': json['suburb'],
71
+ 'state': json['state'],
72
+ 'postcode': json['postcode'],
73
+ };
74
+ }
75
+
76
+ export function ValidateSuburbRequestToJSON(json: any): ValidateSuburbRequest {
77
+ return ValidateSuburbRequestToJSONTyped(json, false);
78
+ }
79
+
80
+ export function ValidateSuburbRequestToJSONTyped(value?: ValidateSuburbRequest | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'site_id': value['siteId'],
88
+ 'suburb': value['suburb'],
89
+ 'state': value['state'],
90
+ 'postcode': value['postcode'],
91
+ };
92
+ }
93
+
@@ -583,6 +583,8 @@ export * from './StoreSpecialDateResourceArrayResponse';
583
583
  export * from './StoreStockType';
584
584
  export * from './StoreTransactionResource';
585
585
  export * from './StoreTransactionResourceArrayResponse';
586
+ export * from './SuburbValidationResource';
587
+ export * from './SuburbValidationResourceArrayResponse';
586
588
  export * from './SupplierFrontendResource';
587
589
  export * from './SupplierFrontendResourceArrayResponse';
588
590
  export * from './SupplierListResource';
@@ -647,6 +649,8 @@ export * from './UpdateStoreRequest';
647
649
  export * from './UpdateStoreRequestSpecialDatesInner';
648
650
  export * from './UpdateSupplierRequest';
649
651
  export * from './UpdateTagRequest';
652
+ export * from './ValidateOrderSuburbRequest';
653
+ export * from './ValidateSuburbRequest';
650
654
  export * from './WishlistCheckResource';
651
655
  export * from './WishlistCheckResourceArrayResponse';
652
656
  export * from './WishlistToggleResource';