@digital8/lighting-illusions-ts-sdk 0.0.2022 → 0.0.2023
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.
- package/.openapi-generator/FILES +4 -6
- package/README.md +4 -5
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/CartResource.d.ts +5 -5
- package/dist/models/CartResource.js +5 -5
- package/dist/models/LineItemListResource.d.ts +3 -3
- package/dist/models/LineItemListResource.js +3 -3
- package/dist/models/ProductChildLineItemLiteResource.d.ts +88 -0
- package/dist/models/{ProductChildCartLiteResource.js → ProductChildLineItemLiteResource.js} +13 -13
- package/dist/models/ProductChildLineItemLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildLineItemLiteResourceArrayResponse.js +50 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- package/dist/models/UpdateOrderRequest.d.ts +2 -2
- package/dist/models/UpdateOrderRequest.js +6 -2
- package/dist/models/index.d.ts +2 -3
- package/dist/models/index.js +2 -3
- package/docs/CartResource.md +2 -2
- package/docs/LineItemListResource.md +1 -1
- package/docs/{ProductChildCartLiteResource.md → ProductChildLineItemLiteResource.md} +4 -4
- package/docs/{ProductChildCartLiteResourceArrayResponse.md → ProductChildLineItemLiteResourceArrayResponse.md} +5 -5
- package/package.json +1 -1
- package/src/models/AddressResource.ts +5 -5
- package/src/models/CartResource.ts +14 -14
- package/src/models/LineItemListResource.ts +10 -10
- package/src/models/{ProductChildCartLiteResource.ts → ProductChildLineItemLiteResource.ts} +20 -20
- package/src/models/ProductChildLineItemLiteResourceArrayResponse.ts +73 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +5 -5
- package/src/models/UpdateOrderRequest.ts +6 -4
- package/src/models/index.ts +2 -3
- package/dist/models/OrderOmnisendEvent.d.ts +0 -25
- package/dist/models/OrderOmnisendEvent.js +0 -51
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -88
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/docs/OrderOmnisendEvent.md +0 -32
- package/src/models/OrderOmnisendEvent.ts +0 -53
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { LabelResource } from './LabelResource';
|
|
13
|
-
import type { AssetLiteResource } from './AssetLiteResource';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface ProductChildCartLiteResource
|
|
18
|
-
*/
|
|
19
|
-
export interface ProductChildCartLiteResource {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof ProductChildCartLiteResource
|
|
24
|
-
*/
|
|
25
|
-
id: number;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {number}
|
|
29
|
-
* @memberof ProductChildCartLiteResource
|
|
30
|
-
*/
|
|
31
|
-
parentId: number;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof ProductChildCartLiteResource
|
|
36
|
-
*/
|
|
37
|
-
sku: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof ProductChildCartLiteResource
|
|
42
|
-
*/
|
|
43
|
-
model: string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof ProductChildCartLiteResource
|
|
48
|
-
*/
|
|
49
|
-
modelNumber: string;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof ProductChildCartLiteResource
|
|
54
|
-
*/
|
|
55
|
-
name: string;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {number}
|
|
59
|
-
* @memberof ProductChildCartLiteResource
|
|
60
|
-
*/
|
|
61
|
-
stock: number;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {number}
|
|
65
|
-
* @memberof ProductChildCartLiteResource
|
|
66
|
-
*/
|
|
67
|
-
salePrice: number;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {AssetLiteResource}
|
|
71
|
-
* @memberof ProductChildCartLiteResource
|
|
72
|
-
*/
|
|
73
|
-
thumbnail: AssetLiteResource | null;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {LabelResource}
|
|
77
|
-
* @memberof ProductChildCartLiteResource
|
|
78
|
-
*/
|
|
79
|
-
label: LabelResource | null;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Check if a given object implements the ProductChildCartLiteResource interface.
|
|
83
|
-
*/
|
|
84
|
-
export declare function instanceOfProductChildCartLiteResource(value: object): value is ProductChildCartLiteResource;
|
|
85
|
-
export declare function ProductChildCartLiteResourceFromJSON(json: any): ProductChildCartLiteResource;
|
|
86
|
-
export declare function ProductChildCartLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResource;
|
|
87
|
-
export declare function ProductChildCartLiteResourceToJSON(json: any): ProductChildCartLiteResource;
|
|
88
|
-
export declare function ProductChildCartLiteResourceToJSONTyped(value?: ProductChildCartLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ProductChildCartLiteResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface ProductChildCartLiteResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<ProductChildCartLiteResource>}
|
|
22
|
-
* @memberof ProductChildCartLiteResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<ProductChildCartLiteResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfProductChildCartLiteResourceArrayResponse(value: object): value is ProductChildCartLiteResourceArrayResponse;
|
|
30
|
-
export declare function ProductChildCartLiteResourceArrayResponseFromJSON(json: any): ProductChildCartLiteResourceArrayResponse;
|
|
31
|
-
export declare function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResourceArrayResponse;
|
|
32
|
-
export declare function ProductChildCartLiteResourceArrayResponseToJSON(json: any): ProductChildCartLiteResourceArrayResponse;
|
|
33
|
-
export declare function ProductChildCartLiteResourceArrayResponseToJSONTyped(value?: ProductChildCartLiteResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfProductChildCartLiteResourceArrayResponse = instanceOfProductChildCartLiteResourceArrayResponse;
|
|
17
|
-
exports.ProductChildCartLiteResourceArrayResponseFromJSON = ProductChildCartLiteResourceArrayResponseFromJSON;
|
|
18
|
-
exports.ProductChildCartLiteResourceArrayResponseFromJSONTyped = ProductChildCartLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.ProductChildCartLiteResourceArrayResponseToJSON = ProductChildCartLiteResourceArrayResponseToJSON;
|
|
20
|
-
exports.ProductChildCartLiteResourceArrayResponseToJSONTyped = ProductChildCartLiteResourceArrayResponseToJSONTyped;
|
|
21
|
-
var ProductChildCartLiteResource_1 = require("./ProductChildCartLiteResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfProductChildCartLiteResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function ProductChildCartLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(ProductChildCartLiteResource_1.ProductChildCartLiteResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function ProductChildCartLiteResourceArrayResponseToJSON(json) {
|
|
40
|
-
return ProductChildCartLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function ProductChildCartLiteResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'data': value['data'] == null ? undefined : (value['data'].map(ProductChildCartLiteResource_1.ProductChildCartLiteResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# OrderOmnisendEvent
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import type { OrderOmnisendEvent } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
-
|
|
15
|
-
// TODO: Update the object below with actual values
|
|
16
|
-
const example = {
|
|
17
|
-
} satisfies OrderOmnisendEvent
|
|
18
|
-
|
|
19
|
-
console.log(example)
|
|
20
|
-
|
|
21
|
-
// Convert the instance to a JSON string
|
|
22
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
-
console.log(exampleJSON)
|
|
24
|
-
|
|
25
|
-
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as OrderOmnisendEvent
|
|
27
|
-
console.log(exampleParsed)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
-
|
|
32
|
-
|
|
@@ -1,53 +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
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export const OrderOmnisendEvent = {
|
|
21
|
-
PlacedOrder: 'placed order',
|
|
22
|
-
PaidForOrder: 'paid for order'
|
|
23
|
-
} as const;
|
|
24
|
-
export type OrderOmnisendEvent = typeof OrderOmnisendEvent[keyof typeof OrderOmnisendEvent];
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export function instanceOfOrderOmnisendEvent(value: any): boolean {
|
|
28
|
-
for (const key in OrderOmnisendEvent) {
|
|
29
|
-
if (Object.prototype.hasOwnProperty.call(OrderOmnisendEvent, key)) {
|
|
30
|
-
if (OrderOmnisendEvent[key as keyof typeof OrderOmnisendEvent] === value) {
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function OrderOmnisendEventFromJSON(json: any): OrderOmnisendEvent {
|
|
39
|
-
return OrderOmnisendEventFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function OrderOmnisendEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderOmnisendEvent {
|
|
43
|
-
return json as OrderOmnisendEvent;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function OrderOmnisendEventToJSON(value?: OrderOmnisendEvent | null): any {
|
|
47
|
-
return value as any;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function OrderOmnisendEventToJSONTyped(value: any, ignoreDiscriminator: boolean): OrderOmnisendEvent {
|
|
51
|
-
return value as OrderOmnisendEvent;
|
|
52
|
-
}
|
|
53
|
-
|
|
@@ -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 { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
ProductChildCartLiteResourceFromJSON,
|
|
19
|
-
ProductChildCartLiteResourceFromJSONTyped,
|
|
20
|
-
ProductChildCartLiteResourceToJSON,
|
|
21
|
-
ProductChildCartLiteResourceToJSONTyped,
|
|
22
|
-
} from './ProductChildCartLiteResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ProductChildCartLiteResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface ProductChildCartLiteResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<ProductChildCartLiteResource>}
|
|
33
|
-
* @memberof ProductChildCartLiteResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<ProductChildCartLiteResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfProductChildCartLiteResourceArrayResponse(value: object): value is ProductChildCartLiteResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function ProductChildCartLiteResourceArrayResponseFromJSON(json: any): ProductChildCartLiteResourceArrayResponse {
|
|
46
|
-
return ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductChildCartLiteResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function ProductChildCartLiteResourceArrayResponseToJSON(json: any): ProductChildCartLiteResourceArrayResponse {
|
|
60
|
-
return ProductChildCartLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function ProductChildCartLiteResourceArrayResponseToJSONTyped(value?: ProductChildCartLiteResourceArrayResponse | 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(ProductChildCartLiteResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|