@ptkl/sdk 0.10.1 → 1.0.0

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.
Files changed (135) hide show
  1. package/dist/{index.iife.js → index.0.10.js} +1206 -238
  2. package/dist/index.0.9.js +2849 -0
  3. package/dist/package.json +12 -7
  4. package/dist/v0.10/api/component.d.ts +128 -0
  5. package/dist/v0.10/api/componentUtils.d.ts +7 -0
  6. package/dist/v0.10/api/index.d.ts +22 -0
  7. package/dist/v0.10/api/integrations/dms.d.ts +469 -0
  8. package/dist/v0.10/api/integrations/minimax.d.ts +289 -0
  9. package/dist/v0.10/api/integrations/payments.d.ts +40 -0
  10. package/dist/{types → v0.10}/api/integrations.d.ts +2 -0
  11. package/dist/{types → v0.10}/api/integrationsBaseClient.d.ts +3 -0
  12. package/dist/{types → v0.10}/api/platform.d.ts +2 -2
  13. package/dist/v0.10/apiUser.d.ts +9 -0
  14. package/dist/v0.10/apps.d.ts +8 -0
  15. package/dist/v0.10/baseClient.d.ts +6 -0
  16. package/dist/{types/api → v0.10}/component.d.ts +39 -4
  17. package/dist/v0.10/componentUtils.d.ts +7 -0
  18. package/dist/v0.10/config.d.ts +14 -0
  19. package/dist/v0.10/forge.d.ts +7 -0
  20. package/dist/v0.10/functions.d.ts +23 -0
  21. package/dist/{index.cjs.js → v0.10/index.cjs.js} +1206 -238
  22. package/dist/v0.10/index.d.ts +21 -0
  23. package/dist/{index.esm.js → v0.10/index.esm.js} +1205 -235
  24. package/dist/{types/api → v0.10}/integrations/dms.d.ts +11 -1
  25. package/dist/v0.10/integrations/invoicing.d.ts +6 -0
  26. package/dist/v0.10/integrations/minimax.d.ts +289 -0
  27. package/dist/v0.10/integrations/payments.d.ts +40 -0
  28. package/dist/v0.10/integrations/serbiaUtil.d.ts +10 -0
  29. package/dist/v0.10/integrations/vpfr.d.ts +4 -0
  30. package/dist/v0.10/integrations.d.ts +22 -0
  31. package/dist/v0.10/integrationsBaseClient.d.ts +11 -0
  32. package/dist/v0.10/platform.d.ts +34 -0
  33. package/dist/v0.10/platformBaseClient.d.ts +27 -0
  34. package/dist/v0.10/project.d.ts +146 -0
  35. package/dist/v0.10/ratchet.d.ts +196 -0
  36. package/dist/v0.10/sandbox.d.ts +14 -0
  37. package/dist/v0.10/system.d.ts +4 -0
  38. package/dist/v0.10/thunder.d.ts +13 -0
  39. package/dist/v0.10/types/component.d.ts +110 -0
  40. package/dist/{types → v0.10}/types/integrations.d.ts +114 -1
  41. package/dist/v0.10/users.d.ts +69 -0
  42. package/dist/v0.10/workflow.d.ts +5 -0
  43. package/dist/v0.9/api/apiUser.d.ts +9 -0
  44. package/dist/v0.9/api/apps.d.ts +8 -0
  45. package/dist/v0.9/api/baseClient.d.ts +6 -0
  46. package/dist/v0.9/api/component.d.ts +136 -0
  47. package/dist/v0.9/api/componentUtils.d.ts +7 -0
  48. package/dist/v0.9/api/config.d.ts +14 -0
  49. package/dist/v0.9/api/forge.d.ts +7 -0
  50. package/dist/v0.9/api/functions.d.ts +23 -0
  51. package/dist/v0.9/api/index.d.ts +24 -0
  52. package/dist/v0.9/api/integrations/dms.d.ts +419 -0
  53. package/dist/v0.9/api/integrations/invoicing.d.ts +6 -0
  54. package/dist/v0.9/api/integrations/minimax.d.ts +289 -0
  55. package/dist/v0.9/api/integrations/payments.d.ts +40 -0
  56. package/dist/v0.9/api/integrations/serbiaUtil.d.ts +10 -0
  57. package/dist/v0.9/api/integrations/vpfr.d.ts +4 -0
  58. package/dist/v0.9/api/integrations.d.ts +22 -0
  59. package/dist/v0.9/api/integrationsBaseClient.d.ts +11 -0
  60. package/dist/v0.9/api/platform.d.ts +34 -0
  61. package/dist/v0.9/api/platformBaseClient.d.ts +27 -0
  62. package/dist/v0.9/api/project.d.ts +146 -0
  63. package/dist/v0.9/api/ratchet.d.ts +196 -0
  64. package/dist/v0.9/api/sandbox.d.ts +14 -0
  65. package/dist/v0.9/api/system.d.ts +4 -0
  66. package/dist/v0.9/api/thunder.d.ts +13 -0
  67. package/dist/v0.9/api/users.d.ts +69 -0
  68. package/dist/v0.9/api/workflow.d.ts +5 -0
  69. package/dist/v0.9/apiUser.d.ts +9 -0
  70. package/dist/v0.9/apps.d.ts +8 -0
  71. package/dist/v0.9/baseClient.d.ts +6 -0
  72. package/dist/v0.9/component.d.ts +128 -0
  73. package/dist/v0.9/componentUtils.d.ts +7 -0
  74. package/dist/v0.9/config.d.ts +14 -0
  75. package/dist/v0.9/forge.d.ts +7 -0
  76. package/dist/v0.9/functions.d.ts +23 -0
  77. package/dist/v0.9/index.cjs.js +21811 -0
  78. package/dist/v0.9/index.d.ts +21 -0
  79. package/dist/v0.9/index.esm.js +2820 -0
  80. package/dist/v0.9/integrations/dms.d.ts +469 -0
  81. package/dist/v0.9/integrations/invoicing.d.ts +6 -0
  82. package/dist/v0.9/integrations/minimax.d.ts +289 -0
  83. package/dist/v0.9/integrations/payments.d.ts +40 -0
  84. package/dist/v0.9/integrations/serbiaUtil.d.ts +10 -0
  85. package/dist/v0.9/integrations/vpfr.d.ts +4 -0
  86. package/dist/v0.9/integrations.d.ts +22 -0
  87. package/dist/v0.9/integrationsBaseClient.d.ts +11 -0
  88. package/dist/v0.9/platform.d.ts +34 -0
  89. package/dist/v0.9/platformBaseClient.d.ts +27 -0
  90. package/dist/v0.9/project.d.ts +146 -0
  91. package/dist/v0.9/ratchet.d.ts +196 -0
  92. package/dist/v0.9/sandbox.d.ts +14 -0
  93. package/dist/v0.9/system.d.ts +4 -0
  94. package/dist/v0.9/thunder.d.ts +13 -0
  95. package/dist/v0.9/types/component.d.ts +116 -0
  96. package/dist/v0.9/types/config.d.ts +11 -0
  97. package/dist/v0.9/types/integrations.d.ts +321 -0
  98. package/dist/v0.9/types/project.d.ts +64 -0
  99. package/dist/v0.9/types/ratchet.d.ts +38 -0
  100. package/dist/v0.9/types/users.d.ts +66 -0
  101. package/dist/v0.9/users.d.ts +69 -0
  102. package/dist/v0.9/util/detectEnv.d.ts +4 -0
  103. package/dist/v0.9/workflow.d.ts +5 -0
  104. package/package.json +12 -7
  105. package/dist/monaco.d.ts +0 -887
  106. package/dist/types/api/componentUtils.d.ts +0 -5
  107. package/dist/types/api/index.d.ts +0 -13
  108. package/dist/types/api/integrations/media.d.ts +0 -17
  109. package/dist/types/api/integrations/payments.d.ts +0 -7
  110. package/dist/types/api/roles.d.ts +0 -9
  111. package/dist/types/index.d.ts +0 -29
  112. package/dist/types/types/component.d.ts +0 -50
  113. package/dist/types/types/media.d.ts +0 -103
  114. /package/dist/{types → v0.10}/api/apiUser.d.ts +0 -0
  115. /package/dist/{types → v0.10}/api/apps.d.ts +0 -0
  116. /package/dist/{types → v0.10}/api/baseClient.d.ts +0 -0
  117. /package/dist/{types → v0.10}/api/config.d.ts +0 -0
  118. /package/dist/{types → v0.10}/api/forge.d.ts +0 -0
  119. /package/dist/{types → v0.10}/api/functions.d.ts +0 -0
  120. /package/dist/{types → v0.10}/api/integrations/invoicing.d.ts +0 -0
  121. /package/dist/{types → v0.10}/api/integrations/serbiaUtil.d.ts +0 -0
  122. /package/dist/{types → v0.10}/api/integrations/vpfr.d.ts +0 -0
  123. /package/dist/{types → v0.10}/api/platformBaseClient.d.ts +0 -0
  124. /package/dist/{types → v0.10}/api/project.d.ts +0 -0
  125. /package/dist/{types → v0.10}/api/ratchet.d.ts +0 -0
  126. /package/dist/{types → v0.10}/api/sandbox.d.ts +0 -0
  127. /package/dist/{types → v0.10}/api/system.d.ts +0 -0
  128. /package/dist/{types → v0.10}/api/thunder.d.ts +0 -0
  129. /package/dist/{types → v0.10}/api/users.d.ts +0 -0
  130. /package/dist/{types → v0.10}/api/workflow.d.ts +0 -0
  131. /package/dist/{types → v0.10}/types/config.d.ts +0 -0
  132. /package/dist/{types → v0.10}/types/project.d.ts +0 -0
  133. /package/dist/{types → v0.10}/types/ratchet.d.ts +0 -0
  134. /package/dist/{types → v0.10}/types/users.d.ts +0 -0
  135. /package/dist/{types → v0.10}/util/detectEnv.d.ts +0 -0
@@ -1,5 +0,0 @@
1
- import PlatformBaseClient from "./platformBaseClient";
2
- export default class ComponentUtils extends PlatformBaseClient {
3
- list(): Promise<import("axios").AxiosResponse<any, any>>;
4
- create(data: any): Promise<import("axios").AxiosResponse<any, any>>;
5
- }
@@ -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,7 +0,0 @@
1
- import IntegrationsBaseClient from "../integrationsBaseClient";
2
- import { PaymentProvider, GetPaymentLinkOptions } from "../../types/integrations";
3
- export default class Payments extends IntegrationsBaseClient {
4
- getTransactions(user: string): Promise<import("axios").AxiosResponse<any, any>>;
5
- settings(provider: PaymentProvider): Promise<import("axios").AxiosResponse<any, any>>;
6
- getPaymentLink(provider: PaymentProvider, user: string, options: GetPaymentLinkOptions): Promise<import("axios").AxiosResponse<any, any>>;
7
- }
@@ -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
- }
@@ -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,50 +0,0 @@
1
- type FindParams = {
2
- currentPage?: number;
3
- perPage?: number;
4
- sortBy?: string;
5
- sortDesc?: boolean;
6
- filterOn?: string[];
7
- filter?: any;
8
- disabled?: any;
9
- dateFrom?: string;
10
- dateTo?: string;
11
- dateField?: string;
12
- $adv?: FindAdvancedParams;
13
- $aggregate?: FindAggregateParams[];
14
- };
15
- type FindOptions = {
16
- cache?: boolean;
17
- buildttl?: number;
18
- locale?: string;
19
- unmaskPasswords?: boolean;
20
- };
21
- type FindResponse = {
22
- items: Model[];
23
- total: number;
24
- page: number;
25
- pages: number;
26
- };
27
- type FindAdvancedParams = {
28
- [key: string]: any;
29
- };
30
- type FindAggregateParams = {
31
- [key: string]: any;
32
- };
33
- type Model = {
34
- uuid: string;
35
- __version__: number;
36
- created_at: string;
37
- updated_at: string;
38
- created_by: string;
39
- updated_by: string;
40
- deleted_at: string;
41
- deleted_by: string;
42
- [key: string]: any;
43
- };
44
- type UpdateOptions = {
45
- force_update_protected_fields: boolean;
46
- };
47
- type ModifyOptions = {
48
- upsert: boolean;
49
- };
50
- export { FindParams, FindOptions, FindResponse, FindAdvancedParams, FindAggregateParams, Model, UpdateOptions, ModifyOptions, };
@@ -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