@digital8/lighting-illusions-ts-sdk 0.0.2029 → 0.0.2031

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 (63) hide show
  1. package/.openapi-generator/FILES +0 -8
  2. package/README.md +2 -7
  3. package/dist/apis/ProductApi.d.ts +0 -16
  4. package/dist/apis/ProductApi.js +0 -59
  5. package/dist/apis/TransactionsApi.d.ts +3 -3
  6. package/dist/apis/TransactionsApi.js +2 -2
  7. package/dist/models/AddressFrontendResource.d.ts +1 -1
  8. package/dist/models/AddressFrontendResource.js +1 -3
  9. package/dist/models/AddressResource.d.ts +2 -8
  10. package/dist/models/AddressResource.js +2 -8
  11. package/dist/models/AdminNoteResource.d.ts +12 -0
  12. package/dist/models/AdminNoteResource.js +8 -0
  13. package/dist/models/AdminOrderResource.d.ts +3 -3
  14. package/dist/models/AdminOrderResource.js +3 -3
  15. package/dist/models/CartResource.d.ts +3 -3
  16. package/dist/models/CartResource.js +3 -3
  17. package/dist/models/CustomerListResource.d.ts +7 -0
  18. package/dist/models/CustomerListResource.js +5 -0
  19. package/dist/models/StoreListResource.d.ts +2 -2
  20. package/dist/models/StoreListResource.js +4 -4
  21. package/dist/models/StoreResource.d.ts +1 -1
  22. package/dist/models/StoreResource.js +1 -3
  23. package/dist/models/TransactionLiteResource.d.ts +0 -6
  24. package/dist/models/TransactionLiteResource.js +0 -2
  25. package/dist/models/index.d.ts +0 -4
  26. package/dist/models/index.js +0 -4
  27. package/docs/AddressResource.md +0 -2
  28. package/docs/AdminNoteResource.md +4 -0
  29. package/docs/AdminOrderResource.md +1 -1
  30. package/docs/CartResource.md +1 -1
  31. package/docs/CustomerListResource.md +2 -0
  32. package/docs/ProductApi.md +0 -66
  33. package/docs/TransactionLiteResource.md +0 -2
  34. package/docs/TransactionsApi.md +3 -3
  35. package/package.json +1 -1
  36. package/src/apis/ProductApi.ts +0 -49
  37. package/src/apis/TransactionsApi.ts +7 -7
  38. package/src/models/AddressFrontendResource.ts +2 -3
  39. package/src/models/AddressResource.ts +4 -14
  40. package/src/models/AdminNoteResource.ts +18 -0
  41. package/src/models/AdminOrderResource.ts +11 -11
  42. package/src/models/CartResource.ts +11 -11
  43. package/src/models/CustomerListResource.ts +16 -0
  44. package/src/models/StoreListResource.ts +5 -5
  45. package/src/models/StoreResource.ts +2 -3
  46. package/src/models/TransactionLiteResource.ts +0 -8
  47. package/src/models/index.ts +0 -4
  48. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
  49. package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
  50. package/dist/models/SkuSearchProductChildRequest.d.ts +0 -38
  51. package/dist/models/SkuSearchProductChildRequest.js +0 -55
  52. package/dist/models/TransactionListResource.d.ts +0 -80
  53. package/dist/models/TransactionListResource.js +0 -81
  54. package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
  55. package/dist/models/TransactionListResourceArrayResponse.js +0 -50
  56. package/docs/PaginatedTransactionListResourceResponse.md +0 -36
  57. package/docs/SkuSearchProductChildRequest.md +0 -36
  58. package/docs/TransactionListResource.md +0 -50
  59. package/docs/TransactionListResourceArrayResponse.md +0 -34
  60. package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
  61. package/src/models/SkuSearchProductChildRequest.ts +0 -75
  62. package/src/models/TransactionListResource.ts +0 -137
  63. package/src/models/TransactionListResourceArrayResponse.ts +0 -73
@@ -1,36 +0,0 @@
1
-
2
- # SkuSearchProductChildRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `sku` | string
10
- `siteId` | number
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { SkuSearchProductChildRequest } from '@digital8/lighting-illusions-ts-sdk'
16
-
17
- // TODO: Update the object below with actual values
18
- const example = {
19
- "sku": null,
20
- "siteId": null,
21
- } satisfies SkuSearchProductChildRequest
22
-
23
- console.log(example)
24
-
25
- // Convert the instance to a JSON string
26
- const exampleJSON: string = JSON.stringify(example)
27
- console.log(exampleJSON)
28
-
29
- // Parse the JSON string back to an object
30
- const exampleParsed = JSON.parse(exampleJSON) as SkuSearchProductChildRequest
31
- console.log(exampleParsed)
32
- ```
33
-
34
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
-
36
-
@@ -1,50 +0,0 @@
1
-
2
- # TransactionListResource
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `id` | number
10
- `paymentSource` | string
11
- `paymentMethod` | string
12
- `type` | string
13
- `status` | string
14
- `totalAmount` | number
15
- `refundedAmount` | number
16
- `reference` | string
17
- `createdAt` | Date
18
-
19
- ## Example
20
-
21
- ```typescript
22
- import type { TransactionListResource } from '@digital8/lighting-illusions-ts-sdk'
23
-
24
- // TODO: Update the object below with actual values
25
- const example = {
26
- "id": null,
27
- "paymentSource": null,
28
- "paymentMethod": null,
29
- "type": null,
30
- "status": null,
31
- "totalAmount": null,
32
- "refundedAmount": null,
33
- "reference": null,
34
- "createdAt": null,
35
- } satisfies TransactionListResource
36
-
37
- console.log(example)
38
-
39
- // Convert the instance to a JSON string
40
- const exampleJSON: string = JSON.stringify(example)
41
- console.log(exampleJSON)
42
-
43
- // Parse the JSON string back to an object
44
- const exampleParsed = JSON.parse(exampleJSON) as TransactionListResource
45
- console.log(exampleParsed)
46
- ```
47
-
48
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
-
50
-
@@ -1,34 +0,0 @@
1
-
2
- # TransactionListResourceArrayResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `data` | [Array<TransactionListResource>](TransactionListResource.md)
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import type { TransactionListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
-
16
- // TODO: Update the object below with actual values
17
- const example = {
18
- "data": null,
19
- } satisfies TransactionListResourceArrayResponse
20
-
21
- console.log(example)
22
-
23
- // Convert the instance to a JSON string
24
- const exampleJSON: string = JSON.stringify(example)
25
- console.log(exampleJSON)
26
-
27
- // Parse the JSON string back to an object
28
- const exampleParsed = JSON.parse(exampleJSON) as TransactionListResourceArrayResponse
29
- console.log(exampleParsed)
30
- ```
31
-
32
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
-
34
-
@@ -1,90 +0,0 @@
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 { PagingMetadata } from './PagingMetadata';
17
- import {
18
- PagingMetadataFromJSON,
19
- PagingMetadataFromJSONTyped,
20
- PagingMetadataToJSON,
21
- PagingMetadataToJSONTyped,
22
- } from './PagingMetadata';
23
- import type { TransactionListResource } from './TransactionListResource';
24
- import {
25
- TransactionListResourceFromJSON,
26
- TransactionListResourceFromJSONTyped,
27
- TransactionListResourceToJSON,
28
- TransactionListResourceToJSONTyped,
29
- } from './TransactionListResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedTransactionListResourceResponse
35
- */
36
- export interface PaginatedTransactionListResourceResponse {
37
- /**
38
- *
39
- * @type {Array<TransactionListResource>}
40
- * @memberof PaginatedTransactionListResourceResponse
41
- */
42
- data: Array<TransactionListResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedTransactionListResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedTransactionListResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse {
55
- if (!('data' in value) || value['data'] === undefined) return false;
56
- if (!('meta' in value) || value['meta'] === undefined) return false;
57
- return true;
58
- }
59
-
60
- export function PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse {
61
- return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse {
76
- return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
- if (value == null) {
81
- return value;
82
- }
83
-
84
- return {
85
-
86
- 'data': ((value['data'] as Array<any>).map(TransactionListResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-
@@ -1,75 +0,0 @@
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 SkuSearchProductChildRequest
20
- */
21
- export interface SkuSearchProductChildRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof SkuSearchProductChildRequest
26
- */
27
- sku: string;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof SkuSearchProductChildRequest
32
- */
33
- siteId: number;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the SkuSearchProductChildRequest interface.
38
- */
39
- export function instanceOfSkuSearchProductChildRequest(value: object): value is SkuSearchProductChildRequest {
40
- if (!('sku' in value) || value['sku'] === undefined) return false;
41
- if (!('siteId' in value) || value['siteId'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function SkuSearchProductChildRequestFromJSON(json: any): SkuSearchProductChildRequest {
46
- return SkuSearchProductChildRequestFromJSONTyped(json, false);
47
- }
48
-
49
- export function SkuSearchProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkuSearchProductChildRequest {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'sku': json['sku'],
56
- 'siteId': json['site_id'],
57
- };
58
- }
59
-
60
- export function SkuSearchProductChildRequestToJSON(json: any): SkuSearchProductChildRequest {
61
- return SkuSearchProductChildRequestToJSONTyped(json, false);
62
- }
63
-
64
- export function SkuSearchProductChildRequestToJSONTyped(value?: SkuSearchProductChildRequest | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'sku': value['sku'],
72
- 'site_id': value['siteId'],
73
- };
74
- }
75
-
@@ -1,137 +0,0 @@
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 TransactionListResource
20
- */
21
- export interface TransactionListResource {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof TransactionListResource
26
- */
27
- id: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof TransactionListResource
32
- */
33
- paymentSource: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof TransactionListResource
38
- */
39
- paymentMethod: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof TransactionListResource
44
- */
45
- type: string;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof TransactionListResource
50
- */
51
- status: string;
52
- /**
53
- *
54
- * @type {number}
55
- * @memberof TransactionListResource
56
- */
57
- totalAmount: number;
58
- /**
59
- *
60
- * @type {number}
61
- * @memberof TransactionListResource
62
- */
63
- refundedAmount: number;
64
- /**
65
- *
66
- * @type {string}
67
- * @memberof TransactionListResource
68
- */
69
- reference: string;
70
- /**
71
- *
72
- * @type {Date}
73
- * @memberof TransactionListResource
74
- */
75
- createdAt?: Date | null;
76
- }
77
-
78
- /**
79
- * Check if a given object implements the TransactionListResource interface.
80
- */
81
- export function instanceOfTransactionListResource(value: object): value is TransactionListResource {
82
- if (!('id' in value) || value['id'] === undefined) return false;
83
- if (!('paymentSource' in value) || value['paymentSource'] === undefined) return false;
84
- if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
85
- if (!('type' in value) || value['type'] === undefined) return false;
86
- if (!('status' in value) || value['status'] === undefined) return false;
87
- if (!('totalAmount' in value) || value['totalAmount'] === undefined) return false;
88
- if (!('refundedAmount' in value) || value['refundedAmount'] === undefined) return false;
89
- if (!('reference' in value) || value['reference'] === undefined) return false;
90
- return true;
91
- }
92
-
93
- export function TransactionListResourceFromJSON(json: any): TransactionListResource {
94
- return TransactionListResourceFromJSONTyped(json, false);
95
- }
96
-
97
- export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource {
98
- if (json == null) {
99
- return json;
100
- }
101
- return {
102
-
103
- 'id': json['id'],
104
- 'paymentSource': json['paymentSource'],
105
- 'paymentMethod': json['paymentMethod'],
106
- 'type': json['type'],
107
- 'status': json['status'],
108
- 'totalAmount': json['totalAmount'],
109
- 'refundedAmount': json['refundedAmount'],
110
- 'reference': json['reference'],
111
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
112
- };
113
- }
114
-
115
- export function TransactionListResourceToJSON(json: any): TransactionListResource {
116
- return TransactionListResourceToJSONTyped(json, false);
117
- }
118
-
119
- export function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator: boolean = false): any {
120
- if (value == null) {
121
- return value;
122
- }
123
-
124
- return {
125
-
126
- 'id': value['id'],
127
- 'paymentSource': value['paymentSource'],
128
- 'paymentMethod': value['paymentMethod'],
129
- 'type': value['type'],
130
- 'status': value['status'],
131
- 'totalAmount': value['totalAmount'],
132
- 'refundedAmount': value['refundedAmount'],
133
- 'reference': value['reference'],
134
- 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
135
- };
136
- }
137
-
@@ -1,73 +0,0 @@
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 { TransactionListResource } from './TransactionListResource';
17
- import {
18
- TransactionListResourceFromJSON,
19
- TransactionListResourceFromJSONTyped,
20
- TransactionListResourceToJSON,
21
- TransactionListResourceToJSONTyped,
22
- } from './TransactionListResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface TransactionListResourceArrayResponse
28
- */
29
- export interface TransactionListResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<TransactionListResource>}
33
- * @memberof TransactionListResourceArrayResponse
34
- */
35
- data?: Array<TransactionListResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the TransactionListResourceArrayResponse interface.
40
- */
41
- export function instanceOfTransactionListResourceArrayResponse(value: object): value is TransactionListResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function TransactionListResourceArrayResponseFromJSON(json: any): TransactionListResourceArrayResponse {
46
- return TransactionListResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function TransactionListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function TransactionListResourceArrayResponseToJSON(json: any): TransactionListResourceArrayResponse {
60
- return TransactionListResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function TransactionListResourceArrayResponseToJSONTyped(value?: TransactionListResourceArrayResponse | 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(TransactionListResourceToJSON)),
71
- };
72
- }
73
-