@permute/sdk 0.2.0 → 0.4.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.
- package/README.md +224 -13
- package/dist/app.d.ts +23 -0
- package/dist/app.js +65 -0
- package/dist/client.d.ts +44 -16
- package/dist/client.js +86 -14
- package/dist/errors.d.ts +13 -0
- package/dist/errors.js +14 -0
- package/dist/generated/openapi.d.ts +642 -2
- package/dist/generated/runtime-contract.d.ts +29 -1
- package/dist/generated/runtime-contract.js +6143 -3071
- package/dist/index.d.ts +17 -16
- package/dist/index.js +17 -16
- package/dist/types.d.ts +40 -0
- package/package.json +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
export * from './types.js';
|
|
2
2
|
export * from './client.js';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
3
|
+
export { Providers } from './generated/runtime-contract.js';
|
|
4
|
+
export declare const Context: {
|
|
5
|
+
readonly ACUMATICA: "acumatica";
|
|
6
|
+
readonly QUICKBOOKS: "quickbooks";
|
|
7
|
+
readonly HUBSPOT: "hubspot";
|
|
8
|
+
readonly ATTIO: "attio";
|
|
9
|
+
readonly BIGQUERY: "bigquery";
|
|
10
|
+
readonly BILLCOM: "billcom";
|
|
11
|
+
readonly BREX: "brex";
|
|
12
|
+
readonly DOUBLE: "double";
|
|
13
|
+
readonly FIREFLIES: "fireflies";
|
|
14
|
+
readonly KLAVIYO: "klaviyo";
|
|
15
|
+
readonly MERCURY: "mercury";
|
|
16
|
+
readonly MONDAY: "monday";
|
|
17
|
+
readonly SHOPIFY: "shopify";
|
|
18
|
+
readonly STRIPE: "stripe";
|
|
19
|
+
readonly XERO: "xero";
|
|
19
20
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
export * from './types.js';
|
|
2
2
|
export * from './client.js';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
export { Providers } from './generated/runtime-contract.js';
|
|
4
|
+
export const Context = {
|
|
5
|
+
ACUMATICA: 'acumatica',
|
|
6
|
+
QUICKBOOKS: 'quickbooks',
|
|
7
|
+
HUBSPOT: 'hubspot',
|
|
8
|
+
ATTIO: 'attio',
|
|
9
|
+
BIGQUERY: 'bigquery',
|
|
10
|
+
BILLCOM: 'billcom',
|
|
11
|
+
BREX: 'brex',
|
|
12
|
+
DOUBLE: 'double',
|
|
13
|
+
FIREFLIES: 'fireflies',
|
|
14
|
+
KLAVIYO: 'klaviyo',
|
|
15
|
+
MERCURY: 'mercury',
|
|
16
|
+
MONDAY: 'monday',
|
|
17
|
+
SHOPIFY: 'shopify',
|
|
18
|
+
STRIPE: 'stripe',
|
|
19
|
+
XERO: 'xero',
|
|
19
20
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import type { components } from './generated/openapi.js';
|
|
2
2
|
type PublicApiSchema<Name extends keyof components['schemas']> = components['schemas'][Name];
|
|
3
|
+
export type BusinessAction = PublicApiSchema<'BusinessAction'>;
|
|
4
|
+
export type BusinessActionList = PublicApiSchema<'BusinessActionList'>;
|
|
5
|
+
export type ActionCreateRequest = PublicApiSchema<'ActionCreateRequest'>;
|
|
6
|
+
export type ActionDefinition = PublicApiSchema<'ActionDefinition'>;
|
|
7
|
+
export type ActionDefinitionSaveRequest = PublicApiSchema<'ActionDefinitionSaveRequest'>;
|
|
8
|
+
export type ActionDefinitionSaved = PublicApiSchema<'ActionDefinitionSaved'>;
|
|
9
|
+
export type ActionRequest = PublicApiSchema<'ActionRequest'>;
|
|
10
|
+
export type ActionReceipt = PublicApiSchema<'ActionReceipt'>;
|
|
11
|
+
export type ConnectorSession = PublicApiSchema<'ConnectorSession'>;
|
|
12
|
+
export type ConnectorSessionCreated = PublicApiSchema<'ConnectorSessionCreated'>;
|
|
13
|
+
export type ConnectorSessionCreateRequest = PublicApiSchema<'ConnectorSessionCreateRequest'>;
|
|
14
|
+
export type ConnectorProviderId = PublicApiSchema<'ConnectorProviderId'>;
|
|
3
15
|
export type Workspace = PublicApiSchema<'Workspace'>;
|
|
4
16
|
export type WorkspaceList = PublicApiSchema<'WorkspaceList'>;
|
|
5
17
|
export type WorkspaceCreateRequest = PublicApiSchema<'WorkspaceCreateRequest'>;
|
|
@@ -84,9 +96,25 @@ export type ResourceVersionState = PublicApiSchema<'ResourceVersionState'>;
|
|
|
84
96
|
export type ResourceRevisionList = PublicApiSchema<'ResourceRevisionList'>;
|
|
85
97
|
export type ResourceRevision = PublicApiSchema<'ResourceRevision'>;
|
|
86
98
|
export type ResourceVersionRequest = PublicApiSchema<'ResourceVersionRequest'>;
|
|
99
|
+
export type ResourcePublishRequest = PublicApiSchema<'ResourcePublishRequest'>;
|
|
87
100
|
export type Database = PublicApiSchema<'Database'>;
|
|
101
|
+
export type AppDraft = PublicApiSchema<'AppDraft'>;
|
|
102
|
+
export type AppDraftList = PublicApiSchema<'AppDraftList'>;
|
|
103
|
+
export type AppCreateRequest = PublicApiSchema<'AppCreateRequest'>;
|
|
104
|
+
export type AppUpdateRequest = PublicApiSchema<'AppUpdateRequest'>;
|
|
105
|
+
export type AppDeleted = PublicApiSchema<'AppDeleted'>;
|
|
106
|
+
export type AppUploadsRequest = PublicApiSchema<'AppUploadsRequest'>;
|
|
107
|
+
export type AppUploads = PublicApiSchema<'AppUploads'>;
|
|
108
|
+
export type AppSiteSaveRequest = PublicApiSchema<'AppSiteSaveRequest'>;
|
|
109
|
+
export type AppUploadFile = {
|
|
110
|
+
path: string;
|
|
111
|
+
data: string | Blob | Uint8Array;
|
|
112
|
+
};
|
|
88
113
|
export type DatabaseList = PublicApiSchema<'DatabaseList'>;
|
|
89
114
|
export type DatabaseCreateRequest = PublicApiSchema<'DatabaseCreateRequest'>;
|
|
115
|
+
export type DatabaseDefinition = PublicApiSchema<'DatabaseDefinition'>;
|
|
116
|
+
export type DatabaseDefinitionSaveRequest = PublicApiSchema<'DatabaseDefinitionSaveRequest'>;
|
|
117
|
+
export type DatabaseDefinitionSaved = PublicApiSchema<'DatabaseDefinitionSaved'>;
|
|
90
118
|
export type DatabaseTables = PublicApiSchema<'DatabaseTables'>;
|
|
91
119
|
export type DatabaseTableCreateRequest = PublicApiSchema<'DatabaseTableCreateRequest'>;
|
|
92
120
|
export type DatabaseTableCreated = PublicApiSchema<'DatabaseTableCreated'>;
|
|
@@ -94,4 +122,16 @@ export type DatabaseRecords = PublicApiSchema<'DatabaseRecords'>;
|
|
|
94
122
|
export type DatabaseRecordsQuery = PublicApiSchema<'DatabaseRecordsQuery'>;
|
|
95
123
|
export type DatabaseTransactionRequest = PublicApiSchema<'DatabaseTransactionRequest'>;
|
|
96
124
|
export type DatabaseTransactionReceipt = PublicApiSchema<'DatabaseTransactionReceipt'>;
|
|
125
|
+
export type WriteSyncDefinition = PublicApiSchema<'WriteSyncDefinition'>;
|
|
126
|
+
export type WriteSyncCreateRequest = PublicApiSchema<'WriteSyncCreateRequest'>;
|
|
127
|
+
export type WriteSyncUpdateRequest = PublicApiSchema<'WriteSyncUpdateRequest'>;
|
|
128
|
+
export type WriteSync = PublicApiSchema<'WriteSync'>;
|
|
129
|
+
export type WriteSyncDetail = PublicApiSchema<'WriteSyncDetail'>;
|
|
130
|
+
export type WriteSyncList = PublicApiSchema<'WriteSyncList'>;
|
|
131
|
+
export type WriteSyncDeleted = PublicApiSchema<'WriteSyncDeleted'>;
|
|
132
|
+
export type WriteSyncDestinations = PublicApiSchema<'WriteSyncDestinations'>;
|
|
133
|
+
export type WriteSyncRun = PublicApiSchema<'WriteSyncRun'>;
|
|
134
|
+
export type WriteSyncRunList = PublicApiSchema<'WriteSyncRunList'>;
|
|
135
|
+
export type WriteSyncRunQuery = PublicApiSchema<'WriteSyncRunQuery'>;
|
|
136
|
+
export type WriteSyncExecution = PublicApiSchema<'WriteSyncExecution'>;
|
|
97
137
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@permute/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "TypeScript client for the Permute public API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
"types": "./dist/index.d.ts",
|
|
29
29
|
"import": "./dist/index.js",
|
|
30
30
|
"default": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./app": {
|
|
33
|
+
"types": "./dist/app.d.ts",
|
|
34
|
+
"import": "./dist/app.js",
|
|
35
|
+
"default": "./dist/app.js"
|
|
31
36
|
}
|
|
32
37
|
},
|
|
33
38
|
"publishConfig": {
|