@digital8/laravel-auth-template-ts-sdk 0.0.8 → 0.0.10
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 +0 -21
- package/.openapi-generator/VERSION +1 -1
- package/README.md +28 -121
- package/dist/models/UserResource.js +3 -2
- package/package.json +2 -2
- package/src/models/UserResource.ts +2 -2
- package/docs/AssetFileForUploadResource.md +0 -40
- package/docs/AssetFileForUploadResourceArrayResponse.md +0 -34
- package/docs/AssetLiteResource.md +0 -36
- package/docs/AssetLiteResourceArrayResponse.md +0 -34
- package/docs/AssetResource.md +0 -46
- package/docs/AssetResourceArrayResponse.md +0 -34
- package/docs/GeneralApi.md +0 -597
- package/docs/GenericResponse.md +0 -34
- package/docs/IndexUserRequest.md +0 -42
- package/docs/LoginAuthRequest.md +0 -36
- package/docs/PaginatedUserResourceResponse.md +0 -36
- package/docs/PagingMetadata.md +0 -46
- package/docs/ResetPasswordAuthRequest.md +0 -38
- package/docs/SendForgotPasswordLinkAuthRequest.md +0 -34
- package/docs/StoreAssetFileRequest.md +0 -36
- package/docs/StoreUserRequest.md +0 -40
- package/docs/UpdateUserRequest.md +0 -50
- package/docs/UserAuthTokenResource.md +0 -36
- package/docs/UserAuthTokenResourceArrayResponse.md +0 -34
- package/docs/UserResource.md +0 -50
- package/docs/UserResourceArrayResponse.md +0 -34
package/.openapi-generator/FILES
CHANGED
|
@@ -2,27 +2,6 @@
|
|
|
2
2
|
.npmignore
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
|
-
docs/AssetFileForUploadResource.md
|
|
6
|
-
docs/AssetFileForUploadResourceArrayResponse.md
|
|
7
|
-
docs/AssetLiteResource.md
|
|
8
|
-
docs/AssetLiteResourceArrayResponse.md
|
|
9
|
-
docs/AssetResource.md
|
|
10
|
-
docs/AssetResourceArrayResponse.md
|
|
11
|
-
docs/GeneralApi.md
|
|
12
|
-
docs/GenericResponse.md
|
|
13
|
-
docs/IndexUserRequest.md
|
|
14
|
-
docs/LoginAuthRequest.md
|
|
15
|
-
docs/PaginatedUserResourceResponse.md
|
|
16
|
-
docs/PagingMetadata.md
|
|
17
|
-
docs/ResetPasswordAuthRequest.md
|
|
18
|
-
docs/SendForgotPasswordLinkAuthRequest.md
|
|
19
|
-
docs/StoreAssetFileRequest.md
|
|
20
|
-
docs/StoreUserRequest.md
|
|
21
|
-
docs/UpdateUserRequest.md
|
|
22
|
-
docs/UserAuthTokenResource.md
|
|
23
|
-
docs/UserAuthTokenResourceArrayResponse.md
|
|
24
|
-
docs/UserResource.md
|
|
25
|
-
docs/UserResourceArrayResponse.md
|
|
26
5
|
package.json
|
|
27
6
|
src/apis/GeneralApi.ts
|
|
28
7
|
src/apis/index.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.14.0
|
package/README.md
CHANGED
|
@@ -1,139 +1,46 @@
|
|
|
1
|
-
|
|
1
|
+
## @digital8/laravel-auth-template-ts-sdk@0.0.10
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Environment
|
|
6
|
+
* Node.js
|
|
7
|
+
* Webpack
|
|
8
|
+
* Browserify
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
Language level
|
|
11
|
+
* ES5 - you must have a Promises/A+ library installed
|
|
12
|
+
* ES6
|
|
8
13
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Next, try it out.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
```ts
|
|
17
|
-
import {
|
|
18
|
-
Configuration,
|
|
19
|
-
GeneralApi,
|
|
20
|
-
} from '@digital8/laravel-auth-template-ts-sdk';
|
|
21
|
-
import type { DestroyUserRequest } from '@digital8/laravel-auth-template-ts-sdk';
|
|
22
|
-
|
|
23
|
-
async function example() {
|
|
24
|
-
console.log("🚀 Testing @digital8/laravel-auth-template-ts-sdk SDK...");
|
|
25
|
-
const api = new GeneralApi();
|
|
26
|
-
|
|
27
|
-
const body = {
|
|
28
|
-
// number | The id of the user
|
|
29
|
-
user: 56,
|
|
30
|
-
} satisfies DestroyUserRequest;
|
|
31
|
-
|
|
32
|
-
try {
|
|
33
|
-
const data = await api.destroyUser(body);
|
|
34
|
-
console.log(data);
|
|
35
|
-
} catch (error) {
|
|
36
|
-
console.error(error);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// Run the test
|
|
41
|
-
example().catch(console.error);
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
## Documentation
|
|
46
|
-
|
|
47
|
-
### API Endpoints
|
|
48
|
-
|
|
49
|
-
All URIs are relative to *http://localhost/api*
|
|
50
|
-
|
|
51
|
-
| Class | Method | HTTP request | Description
|
|
52
|
-
| ----- | ------ | ------------ | -------------
|
|
53
|
-
*GeneralApi* | [**destroyUser**](docs/GeneralApi.md#destroyuser) | **POST** /api/users/{user}/delete | Auto-generated: destroyUser
|
|
54
|
-
*GeneralApi* | [**indexUser**](docs/GeneralApi.md#indexuseroperation) | **POST** /api/users/search | Auto-generated: indexUser
|
|
55
|
-
*GeneralApi* | [**loginAuth**](docs/GeneralApi.md#loginauthoperation) | **POST** /api/auth/login | Auto-generated: loginAuth
|
|
56
|
-
*GeneralApi* | [**logoutAuth**](docs/GeneralApi.md#logoutauth) | **POST** /api/auth/logout | Auto-generated: logoutAuth
|
|
57
|
-
*GeneralApi* | [**resetPasswordAuth**](docs/GeneralApi.md#resetpasswordauthoperation) | **POST** /api/auth/reset-password | Auto-generated: resetPasswordAuth
|
|
58
|
-
*GeneralApi* | [**sendForgotPasswordLinkAuth**](docs/GeneralApi.md#sendforgotpasswordlinkauthoperation) | **POST** /api/auth/forgot-password | Auto-generated: sendForgotPasswordLinkAuth
|
|
59
|
-
*GeneralApi* | [**storeAssetFile**](docs/GeneralApi.md#storeassetfileoperation) | **POST** /api/assets/file | Auto-generated: storeAssetFile
|
|
60
|
-
*GeneralApi* | [**storeUser**](docs/GeneralApi.md#storeuseroperation) | **POST** /api/auth/register | Auto-generated: storeUser
|
|
61
|
-
*GeneralApi* | [**updateUser**](docs/GeneralApi.md#updateuseroperation) | **POST** /api/users/{user}/update | Auto-generated: updateUser
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
### Models
|
|
65
|
-
|
|
66
|
-
- [AssetFileForUploadResource](docs/AssetFileForUploadResource.md)
|
|
67
|
-
- [AssetFileForUploadResourceArrayResponse](docs/AssetFileForUploadResourceArrayResponse.md)
|
|
68
|
-
- [AssetLiteResource](docs/AssetLiteResource.md)
|
|
69
|
-
- [AssetLiteResourceArrayResponse](docs/AssetLiteResourceArrayResponse.md)
|
|
70
|
-
- [AssetResource](docs/AssetResource.md)
|
|
71
|
-
- [AssetResourceArrayResponse](docs/AssetResourceArrayResponse.md)
|
|
72
|
-
- [GenericResponse](docs/GenericResponse.md)
|
|
73
|
-
- [IndexUserRequest](docs/IndexUserRequest.md)
|
|
74
|
-
- [LoginAuthRequest](docs/LoginAuthRequest.md)
|
|
75
|
-
- [PaginatedUserResourceResponse](docs/PaginatedUserResourceResponse.md)
|
|
76
|
-
- [PagingMetadata](docs/PagingMetadata.md)
|
|
77
|
-
- [ResetPasswordAuthRequest](docs/ResetPasswordAuthRequest.md)
|
|
78
|
-
- [SendForgotPasswordLinkAuthRequest](docs/SendForgotPasswordLinkAuthRequest.md)
|
|
79
|
-
- [StoreAssetFileRequest](docs/StoreAssetFileRequest.md)
|
|
80
|
-
- [StoreUserRequest](docs/StoreUserRequest.md)
|
|
81
|
-
- [UpdateUserRequest](docs/UpdateUserRequest.md)
|
|
82
|
-
- [UserAuthTokenResource](docs/UserAuthTokenResource.md)
|
|
83
|
-
- [UserAuthTokenResourceArrayResponse](docs/UserAuthTokenResourceArrayResponse.md)
|
|
84
|
-
- [UserResource](docs/UserResource.md)
|
|
85
|
-
- [UserResourceArrayResponse](docs/UserResourceArrayResponse.md)
|
|
14
|
+
Module system
|
|
15
|
+
* CommonJS
|
|
16
|
+
* ES6 module system
|
|
86
17
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
Endpoints do not require authorization.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
## About
|
|
93
|
-
|
|
94
|
-
This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.org/)
|
|
95
|
-
and is automatically generated by the
|
|
96
|
-
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
97
|
-
|
|
98
|
-
- API version: `1.0.0`
|
|
99
|
-
- Package version: `0.0.8`
|
|
100
|
-
- Generator version: `7.18.0`
|
|
101
|
-
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
102
|
-
|
|
103
|
-
The generated npm module supports the following:
|
|
104
|
-
|
|
105
|
-
- Environments
|
|
106
|
-
* Node.js
|
|
107
|
-
* Webpack
|
|
108
|
-
* Browserify
|
|
109
|
-
- Language levels
|
|
110
|
-
* ES5 - you must have a Promises/A+ library installed
|
|
111
|
-
* ES6
|
|
112
|
-
- Module systems
|
|
113
|
-
* CommonJS
|
|
114
|
-
* ES6 module system
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
## Development
|
|
18
|
+
It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
|
|
118
19
|
|
|
119
20
|
### Building
|
|
120
21
|
|
|
121
|
-
To build
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
```bash
|
|
22
|
+
To build and compile the typescript sources to javascript use:
|
|
23
|
+
```
|
|
125
24
|
npm install
|
|
126
25
|
npm run build
|
|
127
26
|
```
|
|
128
27
|
|
|
129
28
|
### Publishing
|
|
130
29
|
|
|
131
|
-
|
|
30
|
+
First build the package then run `npm publish`
|
|
31
|
+
|
|
32
|
+
### Consuming
|
|
33
|
+
|
|
34
|
+
navigate to the folder of your consuming project and run one of the following commands.
|
|
132
35
|
|
|
133
|
-
|
|
134
|
-
|
|
36
|
+
_published:_
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
npm install @digital8/laravel-auth-template-ts-sdk@0.0.10 --save
|
|
135
40
|
```
|
|
136
41
|
|
|
137
|
-
|
|
42
|
+
_unPublished (not recommended):_
|
|
138
43
|
|
|
139
|
-
|
|
44
|
+
```
|
|
45
|
+
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
|
+
```
|
|
@@ -62,6 +62,7 @@ function UserResourceToJSON(json) {
|
|
|
62
62
|
return UserResourceToJSONTyped(json, false);
|
|
63
63
|
}
|
|
64
64
|
function UserResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
65
|
+
var _a, _b;
|
|
65
66
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
66
67
|
if (value == null) {
|
|
67
68
|
return value;
|
|
@@ -74,7 +75,7 @@ function UserResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
74
75
|
'email': value['email'],
|
|
75
76
|
'mobile': value['mobile'],
|
|
76
77
|
'assets': (value['assets'] == null ? null : value['assets'].map(AssetLiteResource_1.AssetLiteResourceToJSON)),
|
|
77
|
-
'createdAt': value['createdAt']
|
|
78
|
-
'updatedAt': value['updatedAt']
|
|
78
|
+
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
79
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
79
80
|
};
|
|
80
81
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digital8/laravel-auth-template-ts-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "OpenAPI client for @digital8/laravel-auth-template-ts-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"repository": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
9
9
|
},
|
|
10
10
|
"main": "./dist/index.js",
|
|
11
|
-
"
|
|
11
|
+
"typings": "./dist/index.d.ts",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
14
|
"prepare": "npm run build"
|
|
@@ -137,8 +137,8 @@ export function UserResourceToJSONTyped(value?: UserResource | null, ignoreDiscr
|
|
|
137
137
|
'email': value['email'],
|
|
138
138
|
'mobile': value['mobile'],
|
|
139
139
|
'assets': (value['assets'] == null ? null : (value['assets'] as Array<any>).map(AssetLiteResourceToJSON)),
|
|
140
|
-
'createdAt': value['createdAt']
|
|
141
|
-
'updatedAt': value['updatedAt']
|
|
140
|
+
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
141
|
+
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# AssetFileForUploadResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`url` | string
|
|
11
|
-
`headers` | Array<string>
|
|
12
|
-
`fileName` | string
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import type { AssetFileForUploadResource } from '@digital8/laravel-auth-template-ts-sdk'
|
|
18
|
-
|
|
19
|
-
// TODO: Update the object below with actual values
|
|
20
|
-
const example = {
|
|
21
|
-
"id": null,
|
|
22
|
-
"url": null,
|
|
23
|
-
"headers": null,
|
|
24
|
-
"fileName": null,
|
|
25
|
-
} satisfies AssetFileForUploadResource
|
|
26
|
-
|
|
27
|
-
console.log(example)
|
|
28
|
-
|
|
29
|
-
// Convert the instance to a JSON string
|
|
30
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
-
console.log(exampleJSON)
|
|
32
|
-
|
|
33
|
-
// Parse the JSON string back to an object
|
|
34
|
-
const exampleParsed = JSON.parse(exampleJSON) as AssetFileForUploadResource
|
|
35
|
-
console.log(exampleParsed)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
-
|
|
40
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# AssetFileForUploadResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<AssetFileForUploadResource>](AssetFileForUploadResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { AssetFileForUploadResourceArrayResponse } from '@digital8/laravel-auth-template-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies AssetFileForUploadResourceArrayResponse
|
|
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 AssetFileForUploadResourceArrayResponse
|
|
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,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# AssetLiteResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`filePath` | string
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { AssetLiteResource } from '@digital8/laravel-auth-template-ts-sdk'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"id": null,
|
|
20
|
-
"filePath": null,
|
|
21
|
-
} satisfies AssetLiteResource
|
|
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 AssetLiteResource
|
|
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,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# AssetLiteResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<AssetLiteResource>](AssetLiteResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { AssetLiteResourceArrayResponse } from '@digital8/laravel-auth-template-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies AssetLiteResourceArrayResponse
|
|
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 AssetLiteResourceArrayResponse
|
|
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
|
-
|
package/docs/AssetResource.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# AssetResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`filePath` | string
|
|
11
|
-
`fileName` | string
|
|
12
|
-
`mimeType` | string
|
|
13
|
-
`altText` | string
|
|
14
|
-
`index` | number
|
|
15
|
-
`fileId` | number
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import type { AssetResource } from '@digital8/laravel-auth-template-ts-sdk'
|
|
21
|
-
|
|
22
|
-
// TODO: Update the object below with actual values
|
|
23
|
-
const example = {
|
|
24
|
-
"id": null,
|
|
25
|
-
"filePath": null,
|
|
26
|
-
"fileName": null,
|
|
27
|
-
"mimeType": null,
|
|
28
|
-
"altText": null,
|
|
29
|
-
"index": null,
|
|
30
|
-
"fileId": null,
|
|
31
|
-
} satisfies AssetResource
|
|
32
|
-
|
|
33
|
-
console.log(example)
|
|
34
|
-
|
|
35
|
-
// Convert the instance to a JSON string
|
|
36
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
-
console.log(exampleJSON)
|
|
38
|
-
|
|
39
|
-
// Parse the JSON string back to an object
|
|
40
|
-
const exampleParsed = JSON.parse(exampleJSON) as AssetResource
|
|
41
|
-
console.log(exampleParsed)
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
-
|
|
46
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# AssetResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<AssetResource>](AssetResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { AssetResourceArrayResponse } from '@digital8/laravel-auth-template-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies AssetResourceArrayResponse
|
|
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 AssetResourceArrayResponse
|
|
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
|
-
|