@ptkl/sdk 0.10.2 → 1.0.1
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/{index.iife.js → index.0.10.js} +417 -230
- package/dist/index.0.9.js +2849 -0
- package/dist/package.json +12 -7
- package/dist/v0.10/api/component.d.ts +136 -0
- package/dist/v0.10/api/componentUtils.d.ts +16 -0
- package/dist/v0.10/api/index.d.ts +22 -0
- package/dist/{types → v0.10}/api/integrationsBaseClient.d.ts +3 -0
- package/dist/{types → v0.10}/api/platform.d.ts +2 -2
- package/dist/v0.10/apiUser.d.ts +9 -0
- package/dist/v0.10/apps.d.ts +8 -0
- package/dist/v0.10/baseClient.d.ts +6 -0
- package/dist/{types/api → v0.10}/component.d.ts +39 -4
- package/dist/v0.10/componentUtils.d.ts +7 -0
- package/dist/v0.10/config.d.ts +14 -0
- package/dist/v0.10/forge.d.ts +7 -0
- package/dist/v0.10/functions.d.ts +23 -0
- package/dist/{index.cjs.js → v0.10/index.cjs.js} +417 -230
- package/dist/v0.10/index.d.ts +21 -0
- package/dist/{index.esm.js → v0.10/index.esm.js} +416 -227
- package/dist/v0.10/integrations/dms.d.ts +469 -0
- package/dist/v0.10/integrations/invoicing.d.ts +6 -0
- package/dist/v0.10/integrations/minimax.d.ts +289 -0
- package/dist/v0.10/integrations/payments.d.ts +40 -0
- package/dist/v0.10/integrations/serbiaUtil.d.ts +10 -0
- package/dist/v0.10/integrations/vpfr.d.ts +4 -0
- package/dist/v0.10/integrations.d.ts +22 -0
- package/dist/v0.10/integrationsBaseClient.d.ts +11 -0
- package/dist/v0.10/platform.d.ts +34 -0
- package/dist/v0.10/platformBaseClient.d.ts +27 -0
- package/dist/v0.10/project.d.ts +146 -0
- package/dist/v0.10/ratchet.d.ts +196 -0
- package/dist/v0.10/sandbox.d.ts +14 -0
- package/dist/v0.10/system.d.ts +4 -0
- package/dist/v0.10/thunder.d.ts +13 -0
- package/dist/v0.10/types/component.d.ts +298 -0
- package/dist/v0.10/users.d.ts +69 -0
- package/dist/v0.10/workflow.d.ts +5 -0
- package/dist/v0.9/api/apiUser.d.ts +9 -0
- package/dist/v0.9/api/apps.d.ts +8 -0
- package/dist/v0.9/api/baseClient.d.ts +6 -0
- package/dist/v0.9/api/component.d.ts +136 -0
- package/dist/v0.9/api/config.d.ts +14 -0
- package/dist/v0.9/api/forge.d.ts +7 -0
- package/dist/v0.9/api/functions.d.ts +23 -0
- package/dist/v0.9/api/index.d.ts +24 -0
- package/dist/v0.9/api/integrations/dms.d.ts +419 -0
- package/dist/v0.9/api/integrations/invoicing.d.ts +6 -0
- package/dist/v0.9/api/integrations/minimax.d.ts +289 -0
- package/dist/v0.9/api/integrations/payments.d.ts +40 -0
- package/dist/v0.9/api/integrations/serbiaUtil.d.ts +10 -0
- package/dist/v0.9/api/integrations/vpfr.d.ts +4 -0
- package/dist/v0.9/api/integrations.d.ts +22 -0
- package/dist/v0.9/api/integrationsBaseClient.d.ts +11 -0
- package/dist/v0.9/api/platform.d.ts +34 -0
- package/dist/v0.9/api/platformBaseClient.d.ts +27 -0
- package/dist/v0.9/api/project.d.ts +146 -0
- package/dist/v0.9/api/ratchet.d.ts +196 -0
- package/dist/v0.9/api/sandbox.d.ts +14 -0
- package/dist/v0.9/api/system.d.ts +4 -0
- package/dist/v0.9/api/thunder.d.ts +13 -0
- package/dist/v0.9/api/users.d.ts +69 -0
- package/dist/v0.9/api/workflow.d.ts +5 -0
- package/dist/v0.9/apiUser.d.ts +9 -0
- package/dist/v0.9/apps.d.ts +8 -0
- package/dist/v0.9/baseClient.d.ts +6 -0
- package/dist/v0.9/component.d.ts +128 -0
- package/dist/v0.9/componentUtils.d.ts +7 -0
- package/dist/v0.9/config.d.ts +14 -0
- package/dist/v0.9/forge.d.ts +7 -0
- package/dist/v0.9/functions.d.ts +23 -0
- package/dist/v0.9/index.cjs.js +21811 -0
- package/dist/v0.9/index.d.ts +21 -0
- package/dist/v0.9/index.esm.js +2820 -0
- package/dist/v0.9/integrations/dms.d.ts +469 -0
- package/dist/v0.9/integrations/invoicing.d.ts +6 -0
- package/dist/v0.9/integrations/minimax.d.ts +289 -0
- package/dist/v0.9/integrations/payments.d.ts +40 -0
- package/dist/v0.9/integrations/serbiaUtil.d.ts +10 -0
- package/dist/v0.9/integrations/vpfr.d.ts +4 -0
- package/dist/v0.9/integrations.d.ts +22 -0
- package/dist/v0.9/integrationsBaseClient.d.ts +11 -0
- package/dist/v0.9/platform.d.ts +34 -0
- package/dist/v0.9/platformBaseClient.d.ts +27 -0
- package/dist/v0.9/project.d.ts +146 -0
- package/dist/v0.9/ratchet.d.ts +196 -0
- package/dist/v0.9/sandbox.d.ts +14 -0
- package/dist/v0.9/system.d.ts +4 -0
- package/dist/v0.9/thunder.d.ts +13 -0
- package/dist/{types → v0.9}/types/component.d.ts +34 -2
- package/dist/v0.9/types/config.d.ts +11 -0
- package/dist/v0.9/types/integrations.d.ts +321 -0
- package/dist/v0.9/types/project.d.ts +64 -0
- package/dist/v0.9/types/ratchet.d.ts +38 -0
- package/dist/v0.9/types/users.d.ts +66 -0
- package/dist/v0.9/users.d.ts +69 -0
- package/dist/v0.9/util/detectEnv.d.ts +4 -0
- package/dist/v0.9/workflow.d.ts +5 -0
- package/package.json +12 -7
- package/dist/monaco.d.ts +0 -887
- package/dist/types/api/index.d.ts +0 -13
- package/dist/types/api/integrations/media.d.ts +0 -17
- package/dist/types/api/roles.d.ts +0 -9
- package/dist/types/index.d.ts +0 -29
- package/dist/types/types/media.d.ts +0 -103
- /package/dist/{types → v0.10}/api/apiUser.d.ts +0 -0
- /package/dist/{types → v0.10}/api/apps.d.ts +0 -0
- /package/dist/{types → v0.10}/api/baseClient.d.ts +0 -0
- /package/dist/{types → v0.10}/api/config.d.ts +0 -0
- /package/dist/{types → v0.10}/api/forge.d.ts +0 -0
- /package/dist/{types → v0.10}/api/functions.d.ts +0 -0
- /package/dist/{types → v0.10}/api/integrations/dms.d.ts +0 -0
- /package/dist/{types → v0.10}/api/integrations/invoicing.d.ts +0 -0
- /package/dist/{types → v0.10}/api/integrations/minimax.d.ts +0 -0
- /package/dist/{types → v0.10}/api/integrations/payments.d.ts +0 -0
- /package/dist/{types → v0.10}/api/integrations/serbiaUtil.d.ts +0 -0
- /package/dist/{types → v0.10}/api/integrations/vpfr.d.ts +0 -0
- /package/dist/{types → v0.10}/api/integrations.d.ts +0 -0
- /package/dist/{types → v0.10}/api/platformBaseClient.d.ts +0 -0
- /package/dist/{types → v0.10}/api/project.d.ts +0 -0
- /package/dist/{types → v0.10}/api/ratchet.d.ts +0 -0
- /package/dist/{types → v0.10}/api/sandbox.d.ts +0 -0
- /package/dist/{types → v0.10}/api/system.d.ts +0 -0
- /package/dist/{types → v0.10}/api/thunder.d.ts +0 -0
- /package/dist/{types → v0.10}/api/users.d.ts +0 -0
- /package/dist/{types → v0.10}/api/workflow.d.ts +0 -0
- /package/dist/{types → v0.10}/types/config.d.ts +0 -0
- /package/dist/{types → v0.10}/types/integrations.d.ts +0 -0
- /package/dist/{types → v0.10}/types/project.d.ts +0 -0
- /package/dist/{types → v0.10}/types/ratchet.d.ts +0 -0
- /package/dist/{types → v0.10}/types/users.d.ts +0 -0
- /package/dist/{types → v0.10}/util/detectEnv.d.ts +0 -0
- /package/dist/{types → v0.9}/api/componentUtils.d.ts +0 -0
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import ApiUser from './apiUser';
|
|
2
|
-
import Functions from './functions';
|
|
3
|
-
import Platform from './platform';
|
|
4
|
-
import Roles from './roles';
|
|
5
|
-
import Users from './users';
|
|
6
|
-
declare const _default: {
|
|
7
|
-
ApiUser: typeof ApiUser;
|
|
8
|
-
Functions: typeof Functions;
|
|
9
|
-
Roles: typeof Roles;
|
|
10
|
-
Users: typeof Users;
|
|
11
|
-
Platform: typeof Platform;
|
|
12
|
-
};
|
|
13
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import IntegrationsBaseClient from "../integrationsBaseClient";
|
|
2
|
-
export default class Media extends IntegrationsBaseClient {
|
|
3
|
-
list(data: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
-
libraries(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
-
upload(payload: any): Promise<import("axios").AxiosResponse<any, any> | undefined>;
|
|
6
|
-
delete(data: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
-
uploadBase64(data: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
8
|
-
getMedia(lib: string, key: string, encoding: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
-
download(lib: string, key: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
10
|
-
getExifData(lib: string, key: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
-
html2pdf(lib: string, data: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
12
|
-
createDir(lib: string, path: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
13
|
-
deleteDir(lib: string, path: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
|
-
dirs(lib: string, data: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
15
|
-
request(method: string, endpoint: string, params?: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
16
|
-
requestv1(method: string, endpoint: string, params?: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
17
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import PlatformBaseClient from "./platformBaseClient";
|
|
2
|
-
export default class Roles extends PlatformBaseClient {
|
|
3
|
-
create(role: any): Promise<any>;
|
|
4
|
-
delete(uuid: string): Promise<any>;
|
|
5
|
-
list(): Promise<any>;
|
|
6
|
-
availablePermissions(): Promise<any>;
|
|
7
|
-
permissions(): Promise<any>;
|
|
8
|
-
edit(permissions: string[], workspaces: string[], level: number, uuid: string): Promise<any>;
|
|
9
|
-
}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import Platform from './api/platform';
|
|
2
|
-
export { default as Component } from './api/component';
|
|
3
|
-
export { default as Integration } from './api/integrations';
|
|
4
|
-
export { default as Ratchet } from './api/ratchet';
|
|
5
|
-
export { default as Sandbox } from './api/sandbox';
|
|
6
|
-
export { default as System } from './api/system';
|
|
7
|
-
export { default as User } from './api/users';
|
|
8
|
-
export { default as Functions } from './api/functions';
|
|
9
|
-
export { default as APIUser } from './api/apiUser';
|
|
10
|
-
export { default as Apps } from './api/apps';
|
|
11
|
-
export { default as Workflow } from './api/workflow';
|
|
12
|
-
export { default as ComponentUtils } from './api/componentUtils';
|
|
13
|
-
export { default as Thunder } from './api/thunder';
|
|
14
|
-
export { default as Forge } from './api/forge';
|
|
15
|
-
export { default as Integrations } from './api/integrations';
|
|
16
|
-
export { default as Payments } from './api/integrations/payments';
|
|
17
|
-
export { default as Invoicing } from './api/integrations/invoicing';
|
|
18
|
-
export { default as DMS } from './api/integrations/dms';
|
|
19
|
-
export { default as SerbiaUtil } from './api/integrations/serbiaUtil';
|
|
20
|
-
export { default as VPFR } from './api/integrations/vpfr';
|
|
21
|
-
export { default as Project } from './api/project';
|
|
22
|
-
export { default as Config } from './api/config';
|
|
23
|
-
export type * from './types/component';
|
|
24
|
-
export type * from './types/integrations';
|
|
25
|
-
export type * from './types/users';
|
|
26
|
-
export type * from './types/project';
|
|
27
|
-
export type * from './types/config';
|
|
28
|
-
export type * from './types/ratchet';
|
|
29
|
-
export default Platform;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
export interface MediaLibrary {
|
|
2
|
-
uuid: string;
|
|
3
|
-
ref: string;
|
|
4
|
-
name: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
type?: string;
|
|
7
|
-
project_uuid: string;
|
|
8
|
-
workspace_uuid?: string;
|
|
9
|
-
created_at: string;
|
|
10
|
-
updated_at: string;
|
|
11
|
-
settings?: MediaLibrarySettings;
|
|
12
|
-
}
|
|
13
|
-
export interface MediaLibrarySettings {
|
|
14
|
-
max_file_size?: number;
|
|
15
|
-
allowed_types?: string[];
|
|
16
|
-
public?: boolean;
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
}
|
|
19
|
-
export interface MediaFile {
|
|
20
|
-
uuid: string;
|
|
21
|
-
key: string;
|
|
22
|
-
name: string;
|
|
23
|
-
path: string;
|
|
24
|
-
size: number;
|
|
25
|
-
mime_type: string;
|
|
26
|
-
library_uuid: string;
|
|
27
|
-
created_at: string;
|
|
28
|
-
updated_at: string;
|
|
29
|
-
metadata?: MediaFileMetadata;
|
|
30
|
-
is_directory?: boolean;
|
|
31
|
-
}
|
|
32
|
-
export interface MediaFileMetadata {
|
|
33
|
-
width?: number;
|
|
34
|
-
height?: number;
|
|
35
|
-
duration?: number;
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
}
|
|
38
|
-
export interface MediaListRequest {
|
|
39
|
-
library_uuid?: string;
|
|
40
|
-
library_ref?: string;
|
|
41
|
-
path?: string;
|
|
42
|
-
page?: number;
|
|
43
|
-
limit?: number;
|
|
44
|
-
search?: string;
|
|
45
|
-
mime_type?: string;
|
|
46
|
-
}
|
|
47
|
-
export interface MediaListResponse {
|
|
48
|
-
files: MediaFile[];
|
|
49
|
-
total: number;
|
|
50
|
-
page: number;
|
|
51
|
-
limit: number;
|
|
52
|
-
}
|
|
53
|
-
export interface MediaUploadRequest {
|
|
54
|
-
library_uuid?: string;
|
|
55
|
-
library_ref?: string;
|
|
56
|
-
path?: string;
|
|
57
|
-
file: File | Blob;
|
|
58
|
-
name?: string;
|
|
59
|
-
metadata?: Record<string, any>;
|
|
60
|
-
}
|
|
61
|
-
export interface MediaDownloadRequest {
|
|
62
|
-
keys: string[];
|
|
63
|
-
zip?: boolean;
|
|
64
|
-
}
|
|
65
|
-
export interface MediaShareRequest {
|
|
66
|
-
keys: string[];
|
|
67
|
-
expires_in?: number;
|
|
68
|
-
password?: string;
|
|
69
|
-
}
|
|
70
|
-
export interface MediaShareResponse {
|
|
71
|
-
url: string;
|
|
72
|
-
expires_at?: string;
|
|
73
|
-
token?: string;
|
|
74
|
-
}
|
|
75
|
-
export interface MediaDirectory {
|
|
76
|
-
name: string;
|
|
77
|
-
path: string;
|
|
78
|
-
}
|
|
79
|
-
export interface MediaMoveRequest {
|
|
80
|
-
keys: string[];
|
|
81
|
-
destination: string;
|
|
82
|
-
}
|
|
83
|
-
export interface MediaDeleteRequest {
|
|
84
|
-
keys: string[];
|
|
85
|
-
}
|
|
86
|
-
export interface ExifData {
|
|
87
|
-
[key: string]: any;
|
|
88
|
-
}
|
|
89
|
-
export interface Html2PdfRequest {
|
|
90
|
-
html: string;
|
|
91
|
-
options?: {
|
|
92
|
-
format?: "A4" | "Letter" | string;
|
|
93
|
-
orientation?: "portrait" | "landscape";
|
|
94
|
-
margin?: {
|
|
95
|
-
top?: string;
|
|
96
|
-
right?: string;
|
|
97
|
-
bottom?: string;
|
|
98
|
-
left?: string;
|
|
99
|
-
};
|
|
100
|
-
[key: string]: any;
|
|
101
|
-
};
|
|
102
|
-
output_path?: string;
|
|
103
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|