@digital8/lighting-illusions-ts-sdk 0.0.528 → 0.0.529
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 +2 -0
- package/README.md +3 -2
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/ProductStatus.d.ts +24 -0
- package/dist/models/ProductStatus.js +50 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/ProductStatus.md +32 -0
- package/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/ProductStatus.ts +52 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -155,6 +155,7 @@ docs/ProductSearchResponseResourcePriceInfo.md
|
|
|
155
155
|
docs/ProductSearchResultResource.md
|
|
156
156
|
docs/ProductSearchResultResourceArrayResponse.md
|
|
157
157
|
docs/ProductSortBy.md
|
|
158
|
+
docs/ProductStatus.md
|
|
158
159
|
docs/ProductTypeApi.md
|
|
159
160
|
docs/ProductTypeListResource.md
|
|
160
161
|
docs/ProductTypeListResourceArrayResponse.md
|
|
@@ -392,6 +393,7 @@ src/models/ProductSearchResponseResourcePriceInfo.ts
|
|
|
392
393
|
src/models/ProductSearchResultResource.ts
|
|
393
394
|
src/models/ProductSearchResultResourceArrayResponse.ts
|
|
394
395
|
src/models/ProductSortBy.ts
|
|
396
|
+
src/models/ProductStatus.ts
|
|
395
397
|
src/models/ProductTypeListResource.ts
|
|
396
398
|
src/models/ProductTypeListResourceArrayResponse.ts
|
|
397
399
|
src/models/ProductTypeLiteResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.529
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -291,6 +291,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
291
291
|
- [ProductSearchResultResource](docs/ProductSearchResultResource.md)
|
|
292
292
|
- [ProductSearchResultResourceArrayResponse](docs/ProductSearchResultResourceArrayResponse.md)
|
|
293
293
|
- [ProductSortBy](docs/ProductSortBy.md)
|
|
294
|
+
- [ProductStatus](docs/ProductStatus.md)
|
|
294
295
|
- [ProductTypeListResource](docs/ProductTypeListResource.md)
|
|
295
296
|
- [ProductTypeListResourceArrayResponse](docs/ProductTypeListResourceArrayResponse.md)
|
|
296
297
|
- [ProductTypeLiteResource](docs/ProductTypeLiteResource.md)
|
|
@@ -377,7 +378,7 @@ and is automatically generated by the
|
|
|
377
378
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
378
379
|
|
|
379
380
|
- API version: `1.0.0`
|
|
380
|
-
- Package version: `0.0.
|
|
381
|
+
- Package version: `0.0.529`
|
|
381
382
|
- Generator version: `7.18.0`
|
|
382
383
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
383
384
|
|
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ProductStatus: {
|
|
17
|
+
readonly InStock: "in_stock";
|
|
18
|
+
};
|
|
19
|
+
export type ProductStatus = typeof ProductStatus[keyof typeof ProductStatus];
|
|
20
|
+
export declare function instanceOfProductStatus(value: any): boolean;
|
|
21
|
+
export declare function ProductStatusFromJSON(json: any): ProductStatus;
|
|
22
|
+
export declare function ProductStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStatus;
|
|
23
|
+
export declare function ProductStatusToJSON(value?: ProductStatus | null): any;
|
|
24
|
+
export declare function ProductStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductStatus;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.ProductStatus = void 0;
|
|
17
|
+
exports.instanceOfProductStatus = instanceOfProductStatus;
|
|
18
|
+
exports.ProductStatusFromJSON = ProductStatusFromJSON;
|
|
19
|
+
exports.ProductStatusFromJSONTyped = ProductStatusFromJSONTyped;
|
|
20
|
+
exports.ProductStatusToJSON = ProductStatusToJSON;
|
|
21
|
+
exports.ProductStatusToJSONTyped = ProductStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ProductStatus = {
|
|
27
|
+
InStock: 'in_stock'
|
|
28
|
+
};
|
|
29
|
+
function instanceOfProductStatus(value) {
|
|
30
|
+
for (var key in exports.ProductStatus) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductStatus, key)) {
|
|
32
|
+
if (exports.ProductStatus[key] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
function ProductStatusFromJSON(json) {
|
|
40
|
+
return ProductStatusFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
function ProductStatusToJSON(value) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
function ProductStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -143,6 +143,7 @@ export * from './ProductSearchResponseResourcePriceInfo';
|
|
|
143
143
|
export * from './ProductSearchResultResource';
|
|
144
144
|
export * from './ProductSearchResultResourceArrayResponse';
|
|
145
145
|
export * from './ProductSortBy';
|
|
146
|
+
export * from './ProductStatus';
|
|
146
147
|
export * from './ProductTypeListResource';
|
|
147
148
|
export * from './ProductTypeListResourceArrayResponse';
|
|
148
149
|
export * from './ProductTypeLiteResource';
|
package/dist/models/index.js
CHANGED
|
@@ -161,6 +161,7 @@ __exportStar(require("./ProductSearchResponseResourcePriceInfo"), exports);
|
|
|
161
161
|
__exportStar(require("./ProductSearchResultResource"), exports);
|
|
162
162
|
__exportStar(require("./ProductSearchResultResourceArrayResponse"), exports);
|
|
163
163
|
__exportStar(require("./ProductSortBy"), exports);
|
|
164
|
+
__exportStar(require("./ProductStatus"), exports);
|
|
164
165
|
__exportStar(require("./ProductTypeListResource"), exports);
|
|
165
166
|
__exportStar(require("./ProductTypeListResourceArrayResponse"), exports);
|
|
166
167
|
__exportStar(require("./ProductTypeLiteResource"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductStatus
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { ProductStatus } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies ProductStatus
|
|
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 ProductStatus
|
|
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
|
+
|
package/package.json
CHANGED
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -0,0 +1,52 @@
|
|
|
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 ProductStatus = {
|
|
21
|
+
InStock: 'in_stock'
|
|
22
|
+
} as const;
|
|
23
|
+
export type ProductStatus = typeof ProductStatus[keyof typeof ProductStatus];
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export function instanceOfProductStatus(value: any): boolean {
|
|
27
|
+
for (const key in ProductStatus) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(ProductStatus, key)) {
|
|
29
|
+
if (ProductStatus[key as keyof typeof ProductStatus] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ProductStatusFromJSON(json: any): ProductStatus {
|
|
38
|
+
return ProductStatusFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ProductStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStatus {
|
|
42
|
+
return json as ProductStatus;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductStatusToJSON(value?: ProductStatus | null): any {
|
|
46
|
+
return value as any;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductStatus {
|
|
50
|
+
return value as ProductStatus;
|
|
51
|
+
}
|
|
52
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -145,6 +145,7 @@ export * from './ProductSearchResponseResourcePriceInfo';
|
|
|
145
145
|
export * from './ProductSearchResultResource';
|
|
146
146
|
export * from './ProductSearchResultResourceArrayResponse';
|
|
147
147
|
export * from './ProductSortBy';
|
|
148
|
+
export * from './ProductStatus';
|
|
148
149
|
export * from './ProductTypeListResource';
|
|
149
150
|
export * from './ProductTypeListResourceArrayResponse';
|
|
150
151
|
export * from './ProductTypeLiteResource';
|