@nextplus/js-sdk 0.0.8 → 0.0.9
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/dist/{chunk-P5F3SZVG.js → chunk-TU3VOZVD.js} +1 -1
- package/dist/{chunk-2RQUD2BL.js → chunk-VAV5HKXV.js} +13 -0
- package/dist/{index-BCKEhMYV.d.cts → index-DESgEWKO.d.ts} +5 -2
- package/dist/{index-Dt0zpNE2.d.ts → index-KyIl4y18.d.cts} +5 -2
- package/dist/index.cjs +13 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/sdk/index.cjs +13 -0
- package/dist/sdk/index.d.cts +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +2 -2
- package/dist/sdk/sdk.gen.cjs +13 -0
- package/dist/sdk/sdk.gen.d.cts +1 -1
- package/dist/sdk/sdk.gen.d.ts +1 -1
- package/dist/sdk/sdk.gen.js +1 -1
- package/dist/{sdk.gen-Bpl7iDGX.d.cts → sdk.gen-D4UJVxtf.d.cts} +42 -1
- package/dist/{sdk.gen-BYVWLTm8.d.ts → sdk.gen-aOku7-zB.d.ts} +42 -1
- package/package.json +1 -1
- package/src/sdk/sdk.gen.ts +22 -0
- package/src/sdk/types.gen.ts +41 -0
package/package.json
CHANGED
package/src/sdk/sdk.gen.ts
CHANGED
|
@@ -748,6 +748,8 @@ import type {
|
|
|
748
748
|
ResourceProcessingFileResponses,
|
|
749
749
|
ResourceDownloadData,
|
|
750
750
|
ResourceDownloadResponses,
|
|
751
|
+
ResourceUploadBase64Data,
|
|
752
|
+
ResourceUploadBase64Responses,
|
|
751
753
|
WorkflowPrototypeDestroyByIdGlobalConnectionsData,
|
|
752
754
|
WorkflowPrototypeDestroyByIdGlobalConnectionsResponses,
|
|
753
755
|
WorkflowPrototypeFindByIdGlobalConnectionsData,
|
|
@@ -10418,6 +10420,26 @@ export class ResourceService {
|
|
|
10418
10420
|
...options,
|
|
10419
10421
|
});
|
|
10420
10422
|
}
|
|
10423
|
+
|
|
10424
|
+
/**
|
|
10425
|
+
* Upload a file from base64 data
|
|
10426
|
+
*/
|
|
10427
|
+
public static uploadBase64<ThrowOnError extends boolean = false>(
|
|
10428
|
+
options: Options<ResourceUploadBase64Data, ThrowOnError>,
|
|
10429
|
+
) {
|
|
10430
|
+
return (options.client ?? _heyApiClient).post<
|
|
10431
|
+
ResourceUploadBase64Responses,
|
|
10432
|
+
unknown,
|
|
10433
|
+
ThrowOnError
|
|
10434
|
+
>({
|
|
10435
|
+
url: '/Resources/uploadBase64',
|
|
10436
|
+
...options,
|
|
10437
|
+
headers: {
|
|
10438
|
+
'Content-Type': 'application/json',
|
|
10439
|
+
...options.headers,
|
|
10440
|
+
},
|
|
10441
|
+
});
|
|
10442
|
+
}
|
|
10421
10443
|
}
|
|
10422
10444
|
|
|
10423
10445
|
export class WorkflowService {
|
package/src/sdk/types.gen.ts
CHANGED
|
@@ -10356,6 +10356,47 @@ export type ResourceDownloadResponses = {
|
|
|
10356
10356
|
export type ResourceDownloadResponse =
|
|
10357
10357
|
ResourceDownloadResponses[keyof ResourceDownloadResponses];
|
|
10358
10358
|
|
|
10359
|
+
export type ResourceUploadBase64Data = {
|
|
10360
|
+
body: {
|
|
10361
|
+
/**
|
|
10362
|
+
* Base64 encoded file data (can include data URI prefix)
|
|
10363
|
+
*/
|
|
10364
|
+
base64Data: string;
|
|
10365
|
+
/**
|
|
10366
|
+
* Original filename with extension
|
|
10367
|
+
*/
|
|
10368
|
+
filename: string;
|
|
10369
|
+
/**
|
|
10370
|
+
* Container/directory name for the file
|
|
10371
|
+
*/
|
|
10372
|
+
container: string;
|
|
10373
|
+
/**
|
|
10374
|
+
* Whether the file should be hidden (boolean or string)
|
|
10375
|
+
*/
|
|
10376
|
+
hidden: string;
|
|
10377
|
+
};
|
|
10378
|
+
path?: never;
|
|
10379
|
+
query?: {
|
|
10380
|
+
/**
|
|
10381
|
+
* Additional options (mediatype, folderId, validateFileUniqueness)
|
|
10382
|
+
*/
|
|
10383
|
+
options?: string;
|
|
10384
|
+
};
|
|
10385
|
+
url: '/Resources/uploadBase64';
|
|
10386
|
+
};
|
|
10387
|
+
|
|
10388
|
+
export type ResourceUploadBase64Responses = {
|
|
10389
|
+
/**
|
|
10390
|
+
* Request was successful
|
|
10391
|
+
*/
|
|
10392
|
+
200: {
|
|
10393
|
+
[key: string]: unknown;
|
|
10394
|
+
};
|
|
10395
|
+
};
|
|
10396
|
+
|
|
10397
|
+
export type ResourceUploadBase64Response =
|
|
10398
|
+
ResourceUploadBase64Responses[keyof ResourceUploadBase64Responses];
|
|
10399
|
+
|
|
10359
10400
|
export type WorkflowPrototypeDestroyByIdGlobalConnectionsData = {
|
|
10360
10401
|
body?: never;
|
|
10361
10402
|
path: {
|