assembly-kit 0.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/CLAUDE.md +205 -0
- package/LICENSE +21 -0
- package/README.md +516 -0
- package/dist/bridge-ui/index.d.mts +4 -0
- package/dist/bridge-ui/index.mjs +5 -0
- package/dist/bridge-ui/use-actions-menu.d.mts +16 -0
- package/dist/bridge-ui/use-actions-menu.mjs +33 -0
- package/dist/bridge-ui/use-actions-menu.mjs.map +1 -0
- package/dist/bridge-ui/use-primary-cta.d.mts +16 -0
- package/dist/bridge-ui/use-primary-cta.mjs +34 -0
- package/dist/bridge-ui/use-primary-cta.mjs.map +1 -0
- package/dist/bridge-ui/use-secondary-cta.d.mts +16 -0
- package/dist/bridge-ui/use-secondary-cta.mjs +34 -0
- package/dist/bridge-ui/use-secondary-cta.mjs.map +1 -0
- package/dist/client/index.d.mts +108 -0
- package/dist/client/index.mjs +168 -0
- package/dist/client/index.mjs.map +1 -0
- package/dist/client/options.d.mts +40 -0
- package/dist/constants/kit-mode.d.mts +15 -0
- package/dist/constants/kit-mode.mjs +15 -0
- package/dist/constants/kit-mode.mjs.map +1 -0
- package/dist/errors/base.d.mts +29 -0
- package/dist/errors/base.mjs +16 -0
- package/dist/errors/base.mjs.map +1 -0
- package/dist/errors/connection.d.mts +12 -0
- package/dist/errors/connection.mjs +16 -0
- package/dist/errors/connection.mjs.map +1 -0
- package/dist/errors/forbidden.d.mts +12 -0
- package/dist/errors/forbidden.mjs +16 -0
- package/dist/errors/forbidden.mjs.map +1 -0
- package/dist/errors/index.d.mts +13 -0
- package/dist/errors/index.mjs +13 -0
- package/dist/errors/invalid-token.d.mts +12 -0
- package/dist/errors/invalid-token.mjs +16 -0
- package/dist/errors/invalid-token.mjs.map +1 -0
- package/dist/errors/missing-api-key.d.mts +12 -0
- package/dist/errors/missing-api-key.mjs +16 -0
- package/dist/errors/missing-api-key.mjs.map +1 -0
- package/dist/errors/no-token.d.mts +12 -0
- package/dist/errors/no-token.mjs +16 -0
- package/dist/errors/no-token.mjs.map +1 -0
- package/dist/errors/not-found.d.mts +12 -0
- package/dist/errors/not-found.mjs +16 -0
- package/dist/errors/not-found.mjs.map +1 -0
- package/dist/errors/rate-limit.d.mts +17 -0
- package/dist/errors/rate-limit.mjs +18 -0
- package/dist/errors/rate-limit.mjs.map +1 -0
- package/dist/errors/response-parse.d.mts +19 -0
- package/dist/errors/response-parse.mjs +23 -0
- package/dist/errors/response-parse.mjs.map +1 -0
- package/dist/errors/server.d.mts +12 -0
- package/dist/errors/server.mjs +16 -0
- package/dist/errors/server.mjs.map +1 -0
- package/dist/errors/unauthorized.d.mts +12 -0
- package/dist/errors/unauthorized.mjs +16 -0
- package/dist/errors/unauthorized.mjs.map +1 -0
- package/dist/errors/validation.d.mts +12 -0
- package/dist/errors/validation.mjs +16 -0
- package/dist/errors/validation.mjs.map +1 -0
- package/dist/index.d.mts +49 -0
- package/dist/index.mjs +51 -0
- package/dist/lib/modules/app-connections/resource.d.mts +28 -0
- package/dist/lib/modules/app-connections/resource.mjs +33 -0
- package/dist/lib/modules/app-connections/resource.mjs.map +1 -0
- package/dist/lib/modules/app-connections/schema.d.mts +37 -0
- package/dist/lib/modules/app-connections/schema.mjs +30 -0
- package/dist/lib/modules/app-connections/schema.mjs.map +1 -0
- package/dist/lib/modules/app-installs/resource.d.mts +21 -0
- package/dist/lib/modules/app-installs/resource.mjs +31 -0
- package/dist/lib/modules/app-installs/resource.mjs.map +1 -0
- package/dist/lib/modules/app-installs/schema.d.mts +22 -0
- package/dist/lib/modules/app-installs/schema.mjs +23 -0
- package/dist/lib/modules/app-installs/schema.mjs.map +1 -0
- package/dist/lib/modules/clients/resource.d.mts +43 -0
- package/dist/lib/modules/clients/resource.mjs +62 -0
- package/dist/lib/modules/clients/resource.mjs.map +1 -0
- package/dist/lib/modules/clients/schema.d.mts +50 -0
- package/dist/lib/modules/clients/schema.mjs +52 -0
- package/dist/lib/modules/clients/schema.mjs.map +1 -0
- package/dist/lib/modules/companies/resource.d.mts +37 -0
- package/dist/lib/modules/companies/resource.mjs +60 -0
- package/dist/lib/modules/companies/resource.mjs.map +1 -0
- package/dist/lib/modules/companies/schema.d.mts +39 -0
- package/dist/lib/modules/companies/schema.mjs +34 -0
- package/dist/lib/modules/companies/schema.mjs.map +1 -0
- package/dist/lib/modules/contract-templates/resource.d.mts +27 -0
- package/dist/lib/modules/contract-templates/resource.mjs +40 -0
- package/dist/lib/modules/contract-templates/resource.mjs.map +1 -0
- package/dist/lib/modules/contract-templates/schema.d.mts +21 -0
- package/dist/lib/modules/contract-templates/schema.mjs +18 -0
- package/dist/lib/modules/contract-templates/schema.mjs.map +1 -0
- package/dist/lib/modules/contracts/resource.d.mts +29 -0
- package/dist/lib/modules/contracts/resource.mjs +40 -0
- package/dist/lib/modules/contracts/resource.mjs.map +1 -0
- package/dist/lib/modules/contracts/schema.d.mts +50 -0
- package/dist/lib/modules/contracts/schema.mjs +45 -0
- package/dist/lib/modules/contracts/schema.mjs.map +1 -0
- package/dist/lib/modules/custom-field-options/index.d.mts +1 -0
- package/dist/lib/modules/custom-field-options/index.mjs +2 -0
- package/dist/lib/modules/custom-field-options/resource.d.mts +22 -0
- package/dist/lib/modules/custom-field-options/resource.mjs +25 -0
- package/dist/lib/modules/custom-field-options/resource.mjs.map +1 -0
- package/dist/lib/modules/custom-field-options/schema.d.mts +18 -0
- package/dist/lib/modules/custom-field-options/schema.mjs +13 -0
- package/dist/lib/modules/custom-field-options/schema.mjs.map +1 -0
- package/dist/lib/modules/custom-fields/resource.d.mts +21 -0
- package/dist/lib/modules/custom-fields/resource.mjs +24 -0
- package/dist/lib/modules/custom-fields/resource.mjs.map +1 -0
- package/dist/lib/modules/custom-fields/schema.d.mts +43 -0
- package/dist/lib/modules/custom-fields/schema.mjs +44 -0
- package/dist/lib/modules/custom-fields/schema.mjs.map +1 -0
- package/dist/lib/modules/events/resource.d.mts +33 -0
- package/dist/lib/modules/events/resource.mjs +49 -0
- package/dist/lib/modules/events/resource.mjs.map +1 -0
- package/dist/lib/modules/events/schema.d.mts +52 -0
- package/dist/lib/modules/events/schema.mjs +49 -0
- package/dist/lib/modules/events/schema.mjs.map +1 -0
- package/dist/lib/modules/file-channels/resource.d.mts +26 -0
- package/dist/lib/modules/file-channels/resource.mjs +48 -0
- package/dist/lib/modules/file-channels/resource.mjs.map +1 -0
- package/dist/lib/modules/file-channels/schema.d.mts +33 -0
- package/dist/lib/modules/file-channels/schema.mjs +28 -0
- package/dist/lib/modules/file-channels/schema.mjs.map +1 -0
- package/dist/lib/modules/files/resource.d.mts +40 -0
- package/dist/lib/modules/files/resource.mjs +52 -0
- package/dist/lib/modules/files/resource.mjs.map +1 -0
- package/dist/lib/modules/files/schema.d.mts +27 -0
- package/dist/lib/modules/files/schema.mjs +27 -0
- package/dist/lib/modules/files/schema.mjs.map +1 -0
- package/dist/lib/modules/form-responses/resource.d.mts +24 -0
- package/dist/lib/modules/form-responses/resource.mjs +34 -0
- package/dist/lib/modules/form-responses/resource.mjs.map +1 -0
- package/dist/lib/modules/form-responses/schema.d.mts +29 -0
- package/dist/lib/modules/form-responses/schema.mjs +23 -0
- package/dist/lib/modules/form-responses/schema.mjs.map +1 -0
- package/dist/lib/modules/forms/resource.d.mts +24 -0
- package/dist/lib/modules/forms/resource.mjs +40 -0
- package/dist/lib/modules/forms/resource.mjs.map +1 -0
- package/dist/lib/modules/forms/schema.d.mts +22 -0
- package/dist/lib/modules/forms/schema.mjs +19 -0
- package/dist/lib/modules/forms/schema.mjs.map +1 -0
- package/dist/lib/modules/index.d.mts +28 -0
- package/dist/lib/modules/index.mjs +29 -0
- package/dist/lib/modules/internal-users/resource.d.mts +24 -0
- package/dist/lib/modules/internal-users/resource.mjs +37 -0
- package/dist/lib/modules/internal-users/resource.mjs.map +1 -0
- package/dist/lib/modules/internal-users/schema.d.mts +27 -0
- package/dist/lib/modules/internal-users/schema.mjs +24 -0
- package/dist/lib/modules/internal-users/schema.mjs.map +1 -0
- package/dist/lib/modules/invoice-templates/resource.d.mts +22 -0
- package/dist/lib/modules/invoice-templates/resource.mjs +32 -0
- package/dist/lib/modules/invoice-templates/resource.mjs.map +1 -0
- package/dist/lib/modules/invoice-templates/schema.d.mts +21 -0
- package/dist/lib/modules/invoice-templates/schema.mjs +18 -0
- package/dist/lib/modules/invoice-templates/schema.mjs.map +1 -0
- package/dist/lib/modules/invoices/resource.d.mts +30 -0
- package/dist/lib/modules/invoices/resource.mjs +48 -0
- package/dist/lib/modules/invoices/resource.mjs.map +1 -0
- package/dist/lib/modules/invoices/schema.d.mts +81 -0
- package/dist/lib/modules/invoices/schema.mjs +75 -0
- package/dist/lib/modules/invoices/schema.mjs.map +1 -0
- package/dist/lib/modules/message-channels/resource.d.mts +26 -0
- package/dist/lib/modules/message-channels/resource.mjs +48 -0
- package/dist/lib/modules/message-channels/resource.mjs.map +1 -0
- package/dist/lib/modules/message-channels/schema.d.mts +35 -0
- package/dist/lib/modules/message-channels/schema.mjs +30 -0
- package/dist/lib/modules/message-channels/schema.mjs.map +1 -0
- package/dist/lib/modules/messages/resource.d.mts +27 -0
- package/dist/lib/modules/messages/resource.mjs +40 -0
- package/dist/lib/modules/messages/resource.mjs.map +1 -0
- package/dist/lib/modules/messages/schema.d.mts +30 -0
- package/dist/lib/modules/messages/schema.mjs +26 -0
- package/dist/lib/modules/messages/schema.mjs.map +1 -0
- package/dist/lib/modules/notes/resource.d.mts +37 -0
- package/dist/lib/modules/notes/resource.mjs +60 -0
- package/dist/lib/modules/notes/resource.mjs.map +1 -0
- package/dist/lib/modules/notes/schema.d.mts +34 -0
- package/dist/lib/modules/notes/schema.mjs +27 -0
- package/dist/lib/modules/notes/schema.mjs.map +1 -0
- package/dist/lib/modules/notifications/resource.d.mts +27 -0
- package/dist/lib/modules/notifications/resource.mjs +52 -0
- package/dist/lib/modules/notifications/resource.mjs.map +1 -0
- package/dist/lib/modules/notifications/schema.d.mts +52 -0
- package/dist/lib/modules/notifications/schema.mjs +43 -0
- package/dist/lib/modules/notifications/schema.mjs.map +1 -0
- package/dist/lib/modules/payments/resource.d.mts +26 -0
- package/dist/lib/modules/payments/resource.mjs +32 -0
- package/dist/lib/modules/payments/resource.mjs.map +1 -0
- package/dist/lib/modules/payments/schema.d.mts +23 -0
- package/dist/lib/modules/payments/schema.mjs +20 -0
- package/dist/lib/modules/payments/schema.mjs.map +1 -0
- package/dist/lib/modules/prices/resource.d.mts +27 -0
- package/dist/lib/modules/prices/resource.mjs +40 -0
- package/dist/lib/modules/prices/resource.mjs.map +1 -0
- package/dist/lib/modules/prices/schema.d.mts +22 -0
- package/dist/lib/modules/prices/schema.mjs +19 -0
- package/dist/lib/modules/prices/schema.mjs.map +1 -0
- package/dist/lib/modules/products/resource.d.mts +24 -0
- package/dist/lib/modules/products/resource.mjs +40 -0
- package/dist/lib/modules/products/resource.mjs.map +1 -0
- package/dist/lib/modules/products/schema.d.mts +22 -0
- package/dist/lib/modules/products/schema.mjs +19 -0
- package/dist/lib/modules/products/schema.mjs.map +1 -0
- package/dist/lib/modules/subscription-templates/resource.d.mts +22 -0
- package/dist/lib/modules/subscription-templates/resource.mjs +32 -0
- package/dist/lib/modules/subscription-templates/resource.mjs.map +1 -0
- package/dist/lib/modules/subscription-templates/schema.d.mts +21 -0
- package/dist/lib/modules/subscription-templates/schema.mjs +18 -0
- package/dist/lib/modules/subscription-templates/schema.mjs.map +1 -0
- package/dist/lib/modules/subscriptions/resource.d.mts +32 -0
- package/dist/lib/modules/subscriptions/resource.mjs +56 -0
- package/dist/lib/modules/subscriptions/resource.mjs.map +1 -0
- package/dist/lib/modules/subscriptions/schema.d.mts +31 -0
- package/dist/lib/modules/subscriptions/schema.mjs +26 -0
- package/dist/lib/modules/subscriptions/schema.mjs.map +1 -0
- package/dist/lib/modules/task-templates/resource.d.mts +24 -0
- package/dist/lib/modules/task-templates/resource.mjs +40 -0
- package/dist/lib/modules/task-templates/resource.mjs.map +1 -0
- package/dist/lib/modules/task-templates/schema.d.mts +22 -0
- package/dist/lib/modules/task-templates/schema.mjs +19 -0
- package/dist/lib/modules/task-templates/schema.mjs.map +1 -0
- package/dist/lib/modules/tasks/resource.d.mts +38 -0
- package/dist/lib/modules/tasks/resource.mjs +60 -0
- package/dist/lib/modules/tasks/resource.mjs.map +1 -0
- package/dist/lib/modules/tasks/schema.d.mts +45 -0
- package/dist/lib/modules/tasks/schema.mjs +43 -0
- package/dist/lib/modules/tasks/schema.mjs.map +1 -0
- package/dist/lib/modules/workspace/resource.d.mts +19 -0
- package/dist/lib/modules/workspace/resource.mjs +23 -0
- package/dist/lib/modules/workspace/resource.mjs.map +1 -0
- package/dist/lib/modules/workspace/schema.d.mts +23 -0
- package/dist/lib/modules/workspace/schema.mjs +21 -0
- package/dist/lib/modules/workspace/schema.mjs.map +1 -0
- package/dist/lib/pagination/paginate.d.mts +8 -0
- package/dist/lib/pagination/paginate.mjs +24 -0
- package/dist/lib/pagination/paginate.mjs.map +1 -0
- package/dist/logger/index.d.mts +26 -0
- package/dist/logger/index.mjs +45 -0
- package/dist/logger/index.mjs.map +1 -0
- package/dist/schemas/index.d.mts +32 -0
- package/dist/schemas/index.mjs +34 -0
- package/dist/schemas/shared/hex-color.d.mts +8 -0
- package/dist/schemas/shared/hex-color.mjs +7 -0
- package/dist/schemas/shared/hex-color.mjs.map +1 -0
- package/dist/schemas/shared/index.d.mts +3 -0
- package/dist/schemas/shared/index.mjs +4 -0
- package/dist/schemas/shared/membership-type.d.mts +9 -0
- package/dist/schemas/shared/membership-type.mjs +11 -0
- package/dist/schemas/shared/membership-type.mjs.map +1 -0
- package/dist/schemas/shared/token.d.mts +22 -0
- package/dist/schemas/shared/token.mjs +21 -0
- package/dist/schemas/shared/token.mjs.map +1 -0
- package/dist/token/assembly-token.d.mts +96 -0
- package/dist/token/assembly-token.mjs +117 -0
- package/dist/token/assembly-token.mjs.map +1 -0
- package/dist/token/crypto.mjs +98 -0
- package/dist/token/crypto.mjs.map +1 -0
- package/dist/token/index.d.mts +3 -0
- package/dist/token/index.mjs +3 -0
- package/dist/token/parse.d.mts +24 -0
- package/dist/token/parse.mjs +62 -0
- package/dist/token/parse.mjs.map +1 -0
- package/dist/transport/build-search-params.mjs +16 -0
- package/dist/transport/build-search-params.mjs.map +1 -0
- package/dist/transport/http.d.mts +14 -0
- package/dist/transport/http.mjs +142 -0
- package/dist/transport/http.mjs.map +1 -0
- package/dist/transport/parse-response.mjs +17 -0
- package/dist/transport/parse-response.mjs.map +1 -0
- package/dist/version.mjs +7 -0
- package/dist/version.mjs.map +1 -0
- package/package.json +93 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Transport } from "../../../transport/http.mjs";
|
|
2
|
+
import { ListArgs } from "../../pagination/paginate.mjs";
|
|
3
|
+
import { FileChannel, FileChannelCreateRequest, FileChannelsResponse } from "./schema.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/lib/modules/file-channels/resource.d.ts
|
|
6
|
+
declare class FileChannelsResource {
|
|
7
|
+
#private;
|
|
8
|
+
constructor({
|
|
9
|
+
transport,
|
|
10
|
+
validateResponses
|
|
11
|
+
}: {
|
|
12
|
+
transport: Transport;
|
|
13
|
+
validateResponses: boolean;
|
|
14
|
+
});
|
|
15
|
+
/** Create a file channel. */
|
|
16
|
+
create(body: FileChannelCreateRequest): Promise<FileChannel>;
|
|
17
|
+
/** List file channels. */
|
|
18
|
+
list(args?: ListArgs): Promise<FileChannelsResponse>;
|
|
19
|
+
/** Retrieve a single file channel by ID. */
|
|
20
|
+
retrieve(id: string): Promise<FileChannel>;
|
|
21
|
+
/** Iterate over all file channels, automatically paginating. Default limit per page: 500. */
|
|
22
|
+
listAll(args?: Omit<ListArgs, "nextToken">): Promise<FileChannel[]>;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { FileChannelsResource };
|
|
26
|
+
//# sourceMappingURL=resource.d.mts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { buildSearchParams } from "../../../transport/build-search-params.mjs";
|
|
2
|
+
import { parseResponse } from "../../../transport/parse-response.mjs";
|
|
3
|
+
import { paginate } from "../../pagination/paginate.mjs";
|
|
4
|
+
import { FileChannelResponseSchema, FileChannelsResponseSchema } from "./schema.mjs";
|
|
5
|
+
//#region src/lib/modules/file-channels/resource.ts
|
|
6
|
+
var FileChannelsResource = class {
|
|
7
|
+
#transport;
|
|
8
|
+
#validate;
|
|
9
|
+
constructor({ transport, validateResponses }) {
|
|
10
|
+
this.#transport = transport;
|
|
11
|
+
this.#validate = validateResponses;
|
|
12
|
+
}
|
|
13
|
+
/** Create a file channel. */
|
|
14
|
+
async create(body) {
|
|
15
|
+
return parseResponse({
|
|
16
|
+
schema: FileChannelResponseSchema,
|
|
17
|
+
data: await this.#transport.post("v1/channels/files", body),
|
|
18
|
+
validate: this.#validate
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/** List file channels. */
|
|
22
|
+
async list(args = {}) {
|
|
23
|
+
return parseResponse({
|
|
24
|
+
schema: FileChannelsResponseSchema,
|
|
25
|
+
data: await this.#transport.get("v1/channels/files", { searchParams: buildSearchParams(args) }),
|
|
26
|
+
validate: this.#validate
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/** Retrieve a single file channel by ID. */
|
|
30
|
+
async retrieve(id) {
|
|
31
|
+
return parseResponse({
|
|
32
|
+
schema: FileChannelResponseSchema,
|
|
33
|
+
data: await this.#transport.get(`v1/channels/files/${id}`),
|
|
34
|
+
validate: this.#validate
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/** Iterate over all file channels, automatically paginating. Default limit per page: 500. */
|
|
38
|
+
async listAll(args = {}) {
|
|
39
|
+
return paginate((listArgs) => this.list({
|
|
40
|
+
...args,
|
|
41
|
+
...listArgs
|
|
42
|
+
}), { limit: args.limit ?? 500 });
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
export { FileChannelsResource };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=resource.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.mjs","names":["#transport","#validate"],"sources":["../../../../src/lib/modules/file-channels/resource.ts"],"sourcesContent":["import { paginate } from \"src/lib/pagination\";\nimport type { ListArgs } from \"src/lib/pagination\";\nimport { buildSearchParams } from \"src/transport/build-search-params\";\nimport type { Transport } from \"src/transport/http\";\nimport { parseResponse } from \"src/transport/parse-response\";\n\nimport { FileChannelResponseSchema, FileChannelsResponseSchema } from \"./schema\";\nimport type { FileChannel, FileChannelCreateRequest, FileChannelsResponse } from \"./schema\";\n\nexport class FileChannelsResource {\n readonly #transport: Transport;\n readonly #validate: boolean;\n\n constructor({\n transport,\n validateResponses,\n }: {\n transport: Transport;\n validateResponses: boolean;\n }) {\n this.#transport = transport;\n this.#validate = validateResponses;\n }\n\n /** Create a file channel. */\n async create(body: FileChannelCreateRequest): Promise<FileChannel> {\n const raw: unknown = await this.#transport.post(\"v1/channels/files\", body);\n return parseResponse({\n schema: FileChannelResponseSchema,\n data: raw,\n validate: this.#validate,\n });\n }\n\n /** List file channels. */\n async list(args: ListArgs = {}): Promise<FileChannelsResponse> {\n const raw: unknown = await this.#transport.get(\"v1/channels/files\", {\n searchParams: buildSearchParams(args),\n });\n return parseResponse({\n schema: FileChannelsResponseSchema,\n data: raw,\n validate: this.#validate,\n });\n }\n\n /** Retrieve a single file channel by ID. */\n async retrieve(id: string): Promise<FileChannel> {\n const raw: unknown = await this.#transport.get(`v1/channels/files/${id}`);\n return parseResponse({\n schema: FileChannelResponseSchema,\n data: raw,\n validate: this.#validate,\n });\n }\n\n /** Iterate over all file channels, automatically paginating. Default limit per page: 500. */\n async listAll(args: Omit<ListArgs, \"nextToken\"> = {}): Promise<FileChannel[]> {\n return paginate((listArgs) => this.list({ ...args, ...listArgs }), {\n limit: args.limit ?? 500,\n });\n }\n}\n"],"mappings":";;;;;AASA,IAAa,uBAAb,MAAkC;CAChC;CACA;CAEA,YAAY,EACV,WACA,qBAIC;AACD,QAAA,YAAkB;AAClB,QAAA,WAAiB;;;CAInB,MAAM,OAAO,MAAsD;AAEjE,SAAO,cAAc;GACnB,QAAQ;GACR,MAAM,MAHmB,MAAA,UAAgB,KAAK,qBAAqB,KAAK;GAIxE,UAAU,MAAA;GACX,CAAC;;;CAIJ,MAAM,KAAK,OAAiB,EAAE,EAAiC;AAI7D,SAAO,cAAc;GACnB,QAAQ;GACR,MAAM,MALmB,MAAA,UAAgB,IAAI,qBAAqB,EAClE,cAAc,kBAAkB,KAAK,EACtC,CAAC;GAIA,UAAU,MAAA;GACX,CAAC;;;CAIJ,MAAM,SAAS,IAAkC;AAE/C,SAAO,cAAc;GACnB,QAAQ;GACR,MAAM,MAHmB,MAAA,UAAgB,IAAI,qBAAqB,KAAK;GAIvE,UAAU,MAAA;GACX,CAAC;;;CAIJ,MAAM,QAAQ,OAAoC,EAAE,EAA0B;AAC5E,SAAO,UAAU,aAAa,KAAK,KAAK;GAAE,GAAG;GAAM,GAAG;GAAU,CAAC,EAAE,EACjE,OAAO,KAAK,SAAS,KACtB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MembershipType } from "../../../schemas/shared/membership-type.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/lib/modules/file-channels/schema.d.ts
|
|
5
|
+
interface FileChannel {
|
|
6
|
+
clientId?: string | null;
|
|
7
|
+
companyId?: string | null;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
id: string;
|
|
10
|
+
memberIds?: string[];
|
|
11
|
+
/** @deprecated Use `clientId`/`companyId` instead. */
|
|
12
|
+
membershipEntityId?: string;
|
|
13
|
+
membershipType: MembershipType;
|
|
14
|
+
object: "fileChannel";
|
|
15
|
+
updatedAt?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const FileChannelSchema: z.ZodType<FileChannel>;
|
|
18
|
+
declare const FileChannelResponseSchema: z.ZodType<FileChannel>;
|
|
19
|
+
type FileChannelResponse = FileChannel;
|
|
20
|
+
interface FileChannelsResponse {
|
|
21
|
+
data: FileChannel[] | null;
|
|
22
|
+
nextToken?: string;
|
|
23
|
+
}
|
|
24
|
+
declare const FileChannelsResponseSchema: z.ZodType<FileChannelsResponse>;
|
|
25
|
+
interface FileChannelCreateRequest {
|
|
26
|
+
clientId?: string;
|
|
27
|
+
companyId?: string;
|
|
28
|
+
membershipType: MembershipType;
|
|
29
|
+
}
|
|
30
|
+
declare const FileChannelCreateRequestSchema: z.ZodType<FileChannelCreateRequest>;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { FileChannel, FileChannelCreateRequest, FileChannelCreateRequestSchema, FileChannelResponse, FileChannelResponseSchema, FileChannelSchema, FileChannelsResponse, FileChannelsResponseSchema };
|
|
33
|
+
//# sourceMappingURL=schema.d.mts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MembershipTypeSchema } from "../../../schemas/shared/membership-type.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/lib/modules/file-channels/schema.ts
|
|
4
|
+
const FileChannelSchema = z.object({
|
|
5
|
+
clientId: z.string().nullable().optional(),
|
|
6
|
+
companyId: z.string().nullable().optional(),
|
|
7
|
+
createdAt: z.iso.datetime(),
|
|
8
|
+
id: z.string(),
|
|
9
|
+
memberIds: z.array(z.string()).optional(),
|
|
10
|
+
membershipEntityId: z.string().optional(),
|
|
11
|
+
membershipType: MembershipTypeSchema,
|
|
12
|
+
object: z.literal("fileChannel"),
|
|
13
|
+
updatedAt: z.iso.datetime().optional()
|
|
14
|
+
});
|
|
15
|
+
const FileChannelResponseSchema = FileChannelSchema;
|
|
16
|
+
const FileChannelsResponseSchema = z.object({
|
|
17
|
+
data: z.array(FileChannelSchema).nullable(),
|
|
18
|
+
nextToken: z.string().optional()
|
|
19
|
+
});
|
|
20
|
+
const FileChannelCreateRequestSchema = z.object({
|
|
21
|
+
clientId: z.string().optional(),
|
|
22
|
+
companyId: z.string().optional(),
|
|
23
|
+
membershipType: MembershipTypeSchema
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { FileChannelCreateRequestSchema, FileChannelResponseSchema, FileChannelSchema, FileChannelsResponseSchema };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=schema.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.mjs","names":[],"sources":["../../../../src/lib/modules/file-channels/schema.ts"],"sourcesContent":["import { MembershipTypeSchema } from \"src/schemas/shared/membership-type\";\nimport type { MembershipType } from \"src/schemas/shared/membership-type\";\nimport { z } from \"zod\";\n\n// ---------------------------------------------------------------------------\n// Base types\n// ---------------------------------------------------------------------------\n\nexport interface FileChannel {\n clientId?: string | null;\n companyId?: string | null;\n createdAt: string;\n id: string;\n memberIds?: string[];\n /** @deprecated Use `clientId`/`companyId` instead. */\n membershipEntityId?: string;\n membershipType: MembershipType;\n object: \"fileChannel\";\n updatedAt?: string;\n}\n\nexport const FileChannelSchema: z.ZodType<FileChannel> = z.object({\n clientId: z.string().nullable().optional(),\n companyId: z.string().nullable().optional(),\n createdAt: z.iso.datetime(),\n id: z.string(),\n memberIds: z.array(z.string()).optional(),\n membershipEntityId: z.string().optional(),\n membershipType: MembershipTypeSchema,\n object: z.literal(\"fileChannel\"),\n updatedAt: z.iso.datetime().optional(),\n});\n\n// ---------------------------------------------------------------------------\n// Response types\n// ---------------------------------------------------------------------------\n\nexport const FileChannelResponseSchema: z.ZodType<FileChannel> = FileChannelSchema;\nexport type FileChannelResponse = FileChannel;\n\nexport interface FileChannelsResponse {\n data: FileChannel[] | null;\n nextToken?: string;\n}\n\nexport const FileChannelsResponseSchema: z.ZodType<FileChannelsResponse> = z.object({\n data: z.array(FileChannelSchema).nullable(),\n nextToken: z.string().optional(),\n});\n\n// ---------------------------------------------------------------------------\n// Request types\n// ---------------------------------------------------------------------------\n\nexport interface FileChannelCreateRequest {\n clientId?: string;\n companyId?: string;\n membershipType: MembershipType;\n}\n\nexport const FileChannelCreateRequestSchema: z.ZodType<FileChannelCreateRequest> = z.object({\n clientId: z.string().optional(),\n companyId: z.string().optional(),\n membershipType: MembershipTypeSchema,\n});\n"],"mappings":";;;AAqBA,MAAa,oBAA4C,EAAE,OAAO;CAChE,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU;CAC1C,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU;CAC3C,WAAW,EAAE,IAAI,UAAU;CAC3B,IAAI,EAAE,QAAQ;CACd,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU;CACzC,oBAAoB,EAAE,QAAQ,CAAC,UAAU;CACzC,gBAAgB;CAChB,QAAQ,EAAE,QAAQ,cAAc;CAChC,WAAW,EAAE,IAAI,UAAU,CAAC,UAAU;CACvC,CAAC;AAMF,MAAa,4BAAoD;AAQjE,MAAa,6BAA8D,EAAE,OAAO;CAClF,MAAM,EAAE,MAAM,kBAAkB,CAAC,UAAU;CAC3C,WAAW,EAAE,QAAQ,CAAC,UAAU;CACjC,CAAC;AAYF,MAAa,iCAAsE,EAAE,OAAO;CAC1F,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,gBAAgB;CACjB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Transport } from "../../../transport/http.mjs";
|
|
2
|
+
import { ListArgs } from "../../pagination/paginate.mjs";
|
|
3
|
+
import { AssemblyFile, AssemblyFilesResponse } from "./schema.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/lib/modules/files/resource.d.ts
|
|
6
|
+
interface ListFilesArgs extends ListArgs {
|
|
7
|
+
channelId: string;
|
|
8
|
+
path?: string;
|
|
9
|
+
}
|
|
10
|
+
declare class FilesResource {
|
|
11
|
+
#private;
|
|
12
|
+
constructor({
|
|
13
|
+
transport,
|
|
14
|
+
validateResponses
|
|
15
|
+
}: {
|
|
16
|
+
transport: Transport;
|
|
17
|
+
validateResponses: boolean;
|
|
18
|
+
});
|
|
19
|
+
/** Create a file, folder, or link. */
|
|
20
|
+
create(args: {
|
|
21
|
+
fileType: string;
|
|
22
|
+
body: {
|
|
23
|
+
channelId: string;
|
|
24
|
+
clientPermissions?: "read_write" | "read_only";
|
|
25
|
+
linkUrl?: string;
|
|
26
|
+
path: string;
|
|
27
|
+
};
|
|
28
|
+
}): Promise<AssemblyFile>;
|
|
29
|
+
/** List files in a channel. */
|
|
30
|
+
list(args: ListFilesArgs): Promise<AssemblyFilesResponse>;
|
|
31
|
+
/** Retrieve a single file by ID. */
|
|
32
|
+
retrieve(id: string): Promise<AssemblyFile>;
|
|
33
|
+
/** Delete a file by ID. */
|
|
34
|
+
delete(id: string): Promise<void>;
|
|
35
|
+
/** Iterate over all files in a channel, automatically paginating. Default limit per page: 500. */
|
|
36
|
+
listAll(args: Omit<ListFilesArgs, "nextToken">): Promise<AssemblyFile[]>;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { FilesResource };
|
|
40
|
+
//# sourceMappingURL=resource.d.mts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { buildSearchParams } from "../../../transport/build-search-params.mjs";
|
|
2
|
+
import { parseResponse } from "../../../transport/parse-response.mjs";
|
|
3
|
+
import { paginate } from "../../pagination/paginate.mjs";
|
|
4
|
+
import { AssemblyFileResponseSchema, AssemblyFilesResponseSchema } from "./schema.mjs";
|
|
5
|
+
//#region src/lib/modules/files/resource.ts
|
|
6
|
+
var FilesResource = class {
|
|
7
|
+
#transport;
|
|
8
|
+
#validate;
|
|
9
|
+
constructor({ transport, validateResponses }) {
|
|
10
|
+
this.#transport = transport;
|
|
11
|
+
this.#validate = validateResponses;
|
|
12
|
+
}
|
|
13
|
+
/** Create a file, folder, or link. */
|
|
14
|
+
async create(args) {
|
|
15
|
+
return parseResponse({
|
|
16
|
+
schema: AssemblyFileResponseSchema,
|
|
17
|
+
data: await this.#transport.post(`v1/files/${args.fileType}`, args.body),
|
|
18
|
+
validate: this.#validate
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/** List files in a channel. */
|
|
22
|
+
async list(args) {
|
|
23
|
+
return parseResponse({
|
|
24
|
+
schema: AssemblyFilesResponseSchema,
|
|
25
|
+
data: await this.#transport.get("v1/files", { searchParams: buildSearchParams(args) }),
|
|
26
|
+
validate: this.#validate
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/** Retrieve a single file by ID. */
|
|
30
|
+
async retrieve(id) {
|
|
31
|
+
return parseResponse({
|
|
32
|
+
schema: AssemblyFileResponseSchema,
|
|
33
|
+
data: await this.#transport.get(`v1/files/${id}`),
|
|
34
|
+
validate: this.#validate
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/** Delete a file by ID. */
|
|
38
|
+
async delete(id) {
|
|
39
|
+
await this.#transport.delete(`v1/files/${id}`);
|
|
40
|
+
}
|
|
41
|
+
/** Iterate over all files in a channel, automatically paginating. Default limit per page: 500. */
|
|
42
|
+
async listAll(args) {
|
|
43
|
+
return paginate((listArgs) => this.list({
|
|
44
|
+
...args,
|
|
45
|
+
...listArgs
|
|
46
|
+
}), { limit: args.limit ?? 500 });
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { FilesResource };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=resource.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.mjs","names":["#transport","#validate"],"sources":["../../../../src/lib/modules/files/resource.ts"],"sourcesContent":["import { paginate } from \"src/lib/pagination\";\nimport type { ListArgs } from \"src/lib/pagination\";\nimport { buildSearchParams } from \"src/transport/build-search-params\";\nimport type { Transport } from \"src/transport/http\";\nimport { parseResponse } from \"src/transport/parse-response\";\n\nimport { AssemblyFileResponseSchema, AssemblyFilesResponseSchema } from \"./schema\";\nimport type { AssemblyFile, AssemblyFilesResponse } from \"./schema\";\n\nexport interface ListFilesArgs extends ListArgs {\n channelId: string;\n path?: string;\n}\n\nexport class FilesResource {\n readonly #transport: Transport;\n readonly #validate: boolean;\n\n constructor({\n transport,\n validateResponses,\n }: {\n transport: Transport;\n validateResponses: boolean;\n }) {\n this.#transport = transport;\n this.#validate = validateResponses;\n }\n\n /** Create a file, folder, or link. */\n async create(args: {\n fileType: string;\n body: {\n channelId: string;\n clientPermissions?: \"read_write\" | \"read_only\";\n linkUrl?: string;\n path: string;\n };\n }): Promise<AssemblyFile> {\n const raw: unknown = await this.#transport.post(`v1/files/${args.fileType}`, args.body);\n return parseResponse({\n schema: AssemblyFileResponseSchema,\n data: raw,\n validate: this.#validate,\n });\n }\n\n /** List files in a channel. */\n async list(args: ListFilesArgs): Promise<AssemblyFilesResponse> {\n const raw: unknown = await this.#transport.get(\"v1/files\", {\n searchParams: buildSearchParams(args),\n });\n return parseResponse({\n schema: AssemblyFilesResponseSchema,\n data: raw,\n validate: this.#validate,\n });\n }\n\n /** Retrieve a single file by ID. */\n async retrieve(id: string): Promise<AssemblyFile> {\n const raw: unknown = await this.#transport.get(`v1/files/${id}`);\n return parseResponse({\n schema: AssemblyFileResponseSchema,\n data: raw,\n validate: this.#validate,\n });\n }\n\n /** Delete a file by ID. */\n async delete(id: string): Promise<void> {\n await this.#transport.delete(`v1/files/${id}`);\n }\n\n /** Iterate over all files in a channel, automatically paginating. Default limit per page: 500. */\n async listAll(args: Omit<ListFilesArgs, \"nextToken\">): Promise<AssemblyFile[]> {\n return paginate((listArgs) => this.list({ ...args, ...listArgs }), {\n limit: args.limit ?? 500,\n });\n }\n}\n"],"mappings":";;;;;AAcA,IAAa,gBAAb,MAA2B;CACzB;CACA;CAEA,YAAY,EACV,WACA,qBAIC;AACD,QAAA,YAAkB;AAClB,QAAA,WAAiB;;;CAInB,MAAM,OAAO,MAQa;AAExB,SAAO,cAAc;GACnB,QAAQ;GACR,MAAM,MAHmB,MAAA,UAAgB,KAAK,YAAY,KAAK,YAAY,KAAK,KAAK;GAIrF,UAAU,MAAA;GACX,CAAC;;;CAIJ,MAAM,KAAK,MAAqD;AAI9D,SAAO,cAAc;GACnB,QAAQ;GACR,MAAM,MALmB,MAAA,UAAgB,IAAI,YAAY,EACzD,cAAc,kBAAkB,KAAK,EACtC,CAAC;GAIA,UAAU,MAAA;GACX,CAAC;;;CAIJ,MAAM,SAAS,IAAmC;AAEhD,SAAO,cAAc;GACnB,QAAQ;GACR,MAAM,MAHmB,MAAA,UAAgB,IAAI,YAAY,KAAK;GAI9D,UAAU,MAAA;GACX,CAAC;;;CAIJ,MAAM,OAAO,IAA2B;AACtC,QAAM,MAAA,UAAgB,OAAO,YAAY,KAAK;;;CAIhD,MAAM,QAAQ,MAAiE;AAC7E,SAAO,UAAU,aAAa,KAAK,KAAK;GAAE,GAAG;GAAM,GAAG;GAAU,CAAC,EAAE,EACjE,OAAO,KAAK,SAAS,KACtB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/lib/modules/files/schema.d.ts
|
|
4
|
+
type FileType = "file" | "folder" | "link";
|
|
5
|
+
declare const FileTypeSchema: z.ZodType<FileType>;
|
|
6
|
+
interface AssemblyFile {
|
|
7
|
+
channelId?: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
fileType?: FileType;
|
|
10
|
+
id: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
object: "file";
|
|
13
|
+
path?: string;
|
|
14
|
+
updatedAt?: string;
|
|
15
|
+
url?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const AssemblyFileSchema: z.ZodType<AssemblyFile>;
|
|
18
|
+
declare const AssemblyFileResponseSchema: z.ZodType<AssemblyFile>;
|
|
19
|
+
type AssemblyFileResponse = AssemblyFile;
|
|
20
|
+
interface AssemblyFilesResponse {
|
|
21
|
+
data: AssemblyFile[] | null;
|
|
22
|
+
nextToken?: string;
|
|
23
|
+
}
|
|
24
|
+
declare const AssemblyFilesResponseSchema: z.ZodType<AssemblyFilesResponse>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { AssemblyFile, AssemblyFileResponse, AssemblyFileResponseSchema, AssemblyFileSchema, AssemblyFilesResponse, AssemblyFilesResponseSchema, FileType, FileTypeSchema };
|
|
27
|
+
//# sourceMappingURL=schema.d.mts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/lib/modules/files/schema.ts
|
|
3
|
+
const FileTypeSchema = z.enum([
|
|
4
|
+
"file",
|
|
5
|
+
"folder",
|
|
6
|
+
"link"
|
|
7
|
+
]);
|
|
8
|
+
const AssemblyFileSchema = z.object({
|
|
9
|
+
channelId: z.string().optional(),
|
|
10
|
+
createdAt: z.iso.datetime(),
|
|
11
|
+
fileType: FileTypeSchema.optional(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
name: z.string().optional(),
|
|
14
|
+
object: z.literal("file"),
|
|
15
|
+
path: z.string().optional(),
|
|
16
|
+
updatedAt: z.iso.datetime().optional(),
|
|
17
|
+
url: z.string().optional()
|
|
18
|
+
});
|
|
19
|
+
const AssemblyFileResponseSchema = AssemblyFileSchema;
|
|
20
|
+
const AssemblyFilesResponseSchema = z.object({
|
|
21
|
+
data: z.array(AssemblyFileSchema).nullable(),
|
|
22
|
+
nextToken: z.string().optional()
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { AssemblyFileResponseSchema, AssemblyFileSchema, AssemblyFilesResponseSchema, FileTypeSchema };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=schema.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.mjs","names":[],"sources":["../../../../src/lib/modules/files/schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\n// ---------------------------------------------------------------------------\n// Base types\n// ---------------------------------------------------------------------------\n\nexport type FileType = \"file\" | \"folder\" | \"link\";\n\nexport const FileTypeSchema: z.ZodType<FileType> = z.enum([\"file\", \"folder\", \"link\"]);\n\nexport interface AssemblyFile {\n channelId?: string;\n createdAt: string;\n fileType?: FileType;\n id: string;\n name?: string;\n object: \"file\";\n path?: string;\n updatedAt?: string;\n url?: string;\n}\n\nexport const AssemblyFileSchema: z.ZodType<AssemblyFile> = z.object({\n channelId: z.string().optional(),\n createdAt: z.iso.datetime(),\n fileType: FileTypeSchema.optional(),\n id: z.string(),\n name: z.string().optional(),\n object: z.literal(\"file\"),\n path: z.string().optional(),\n updatedAt: z.iso.datetime().optional(),\n url: z.string().optional(),\n});\n\n// ---------------------------------------------------------------------------\n// Response types\n// ---------------------------------------------------------------------------\n\nexport const AssemblyFileResponseSchema: z.ZodType<AssemblyFile> = AssemblyFileSchema;\nexport type AssemblyFileResponse = AssemblyFile;\n\nexport interface AssemblyFilesResponse {\n data: AssemblyFile[] | null;\n nextToken?: string;\n}\n\nexport const AssemblyFilesResponseSchema: z.ZodType<AssemblyFilesResponse> = z.object({\n data: z.array(AssemblyFileSchema).nullable(),\n nextToken: z.string().optional(),\n});\n"],"mappings":";;AAQA,MAAa,iBAAsC,EAAE,KAAK;CAAC;CAAQ;CAAU;CAAO,CAAC;AAcrF,MAAa,qBAA8C,EAAE,OAAO;CAClE,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,WAAW,EAAE,IAAI,UAAU;CAC3B,UAAU,eAAe,UAAU;CACnC,IAAI,EAAE,QAAQ;CACd,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,QAAQ,EAAE,QAAQ,OAAO;CACzB,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,WAAW,EAAE,IAAI,UAAU,CAAC,UAAU;CACtC,KAAK,EAAE,QAAQ,CAAC,UAAU;CAC3B,CAAC;AAMF,MAAa,6BAAsD;AAQnE,MAAa,8BAAgE,EAAE,OAAO;CACpF,MAAM,EAAE,MAAM,mBAAmB,CAAC,UAAU;CAC5C,WAAW,EAAE,QAAQ,CAAC,UAAU;CACjC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Transport } from "../../../transport/http.mjs";
|
|
2
|
+
import { FormResponse, FormResponseCreateRequest, FormResponsesResponse } from "./schema.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/lib/modules/form-responses/resource.d.ts
|
|
5
|
+
declare class FormResponsesResource {
|
|
6
|
+
#private;
|
|
7
|
+
constructor({
|
|
8
|
+
transport,
|
|
9
|
+
validateResponses
|
|
10
|
+
}: {
|
|
11
|
+
transport: Transport;
|
|
12
|
+
validateResponses: boolean;
|
|
13
|
+
});
|
|
14
|
+
/** List form responses. */
|
|
15
|
+
list(args?: {
|
|
16
|
+
formId?: string;
|
|
17
|
+
clientId?: string;
|
|
18
|
+
}): Promise<FormResponsesResponse>;
|
|
19
|
+
/** Request a form response (send form to a client). */
|
|
20
|
+
create(body: FormResponseCreateRequest): Promise<FormResponse>;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { FormResponsesResource };
|
|
24
|
+
//# sourceMappingURL=resource.d.mts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { buildSearchParams } from "../../../transport/build-search-params.mjs";
|
|
2
|
+
import { parseResponse } from "../../../transport/parse-response.mjs";
|
|
3
|
+
import { FormResponseItemResponseSchema, FormResponsesResponseSchema } from "./schema.mjs";
|
|
4
|
+
//#region src/lib/modules/form-responses/resource.ts
|
|
5
|
+
var FormResponsesResource = class {
|
|
6
|
+
#transport;
|
|
7
|
+
#validate;
|
|
8
|
+
constructor({ transport, validateResponses }) {
|
|
9
|
+
this.#transport = transport;
|
|
10
|
+
this.#validate = validateResponses;
|
|
11
|
+
}
|
|
12
|
+
/** List form responses. */
|
|
13
|
+
async list(args = {}) {
|
|
14
|
+
const { formId, ...rest } = args;
|
|
15
|
+
const path = formId ? `v1/forms/${formId}/form-responses` : "v1/forms/form-responses";
|
|
16
|
+
return parseResponse({
|
|
17
|
+
schema: FormResponsesResponseSchema,
|
|
18
|
+
data: await this.#transport.get(path, { searchParams: buildSearchParams(rest) }),
|
|
19
|
+
validate: this.#validate
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/** Request a form response (send form to a client). */
|
|
23
|
+
async create(body) {
|
|
24
|
+
return parseResponse({
|
|
25
|
+
schema: FormResponseItemResponseSchema,
|
|
26
|
+
data: await this.#transport.post("v1/form-responses", body),
|
|
27
|
+
validate: this.#validate
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { FormResponsesResource };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=resource.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.mjs","names":["#transport","#validate"],"sources":["../../../../src/lib/modules/form-responses/resource.ts"],"sourcesContent":["import { buildSearchParams } from \"src/transport/build-search-params\";\nimport type { Transport } from \"src/transport/http\";\nimport { parseResponse } from \"src/transport/parse-response\";\n\nimport { FormResponseItemResponseSchema, FormResponsesResponseSchema } from \"./schema\";\nimport type { FormResponse, FormResponseCreateRequest, FormResponsesResponse } from \"./schema\";\n\nexport class FormResponsesResource {\n readonly #transport: Transport;\n readonly #validate: boolean;\n\n constructor({\n transport,\n validateResponses,\n }: {\n transport: Transport;\n validateResponses: boolean;\n }) {\n this.#transport = transport;\n this.#validate = validateResponses;\n }\n\n /** List form responses. */\n async list(args: { formId?: string; clientId?: string } = {}): Promise<FormResponsesResponse> {\n const { formId, ...rest } = args;\n const path = formId ? `v1/forms/${formId}/form-responses` : \"v1/forms/form-responses\";\n const raw: unknown = await this.#transport.get(path, { searchParams: buildSearchParams(rest) });\n return parseResponse({\n schema: FormResponsesResponseSchema,\n data: raw,\n validate: this.#validate,\n });\n }\n\n /** Request a form response (send form to a client). */\n async create(body: FormResponseCreateRequest): Promise<FormResponse> {\n const raw: unknown = await this.#transport.post(\"v1/form-responses\", body);\n return parseResponse({\n schema: FormResponseItemResponseSchema,\n data: raw,\n validate: this.#validate,\n });\n }\n}\n"],"mappings":";;;;AAOA,IAAa,wBAAb,MAAmC;CACjC;CACA;CAEA,YAAY,EACV,WACA,qBAIC;AACD,QAAA,YAAkB;AAClB,QAAA,WAAiB;;;CAInB,MAAM,KAAK,OAA+C,EAAE,EAAkC;EAC5F,MAAM,EAAE,QAAQ,GAAG,SAAS;EAC5B,MAAM,OAAO,SAAS,YAAY,OAAO,mBAAmB;AAE5D,SAAO,cAAc;GACnB,QAAQ;GACR,MAAM,MAHmB,MAAA,UAAgB,IAAI,MAAM,EAAE,cAAc,kBAAkB,KAAK,EAAE,CAAC;GAI7F,UAAU,MAAA;GACX,CAAC;;;CAIJ,MAAM,OAAO,MAAwD;AAEnE,SAAO,cAAc;GACnB,QAAQ;GACR,MAAM,MAHmB,MAAA,UAAgB,KAAK,qBAAqB,KAAK;GAIxE,UAAU,MAAA;GACX,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/lib/modules/form-responses/schema.d.ts
|
|
4
|
+
interface FormResponse {
|
|
5
|
+
clientId?: string;
|
|
6
|
+
companyId?: string;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
formId?: string;
|
|
9
|
+
id: string;
|
|
10
|
+
object: "formResponse";
|
|
11
|
+
status?: string;
|
|
12
|
+
updatedAt?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const FormResponseSchema: z.ZodType<FormResponse>;
|
|
15
|
+
declare const FormResponseItemResponseSchema: z.ZodType<FormResponse>;
|
|
16
|
+
type FormResponseItemResponse = FormResponse;
|
|
17
|
+
interface FormResponsesResponse {
|
|
18
|
+
data: FormResponse[] | null;
|
|
19
|
+
}
|
|
20
|
+
declare const FormResponsesResponseSchema: z.ZodType<FormResponsesResponse>;
|
|
21
|
+
interface FormResponseCreateRequest {
|
|
22
|
+
clientId: string;
|
|
23
|
+
companyId?: string;
|
|
24
|
+
formId: string;
|
|
25
|
+
}
|
|
26
|
+
declare const FormResponseCreateRequestSchema: z.ZodType<FormResponseCreateRequest>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { FormResponse, FormResponseCreateRequest, FormResponseCreateRequestSchema, FormResponseItemResponse, FormResponseItemResponseSchema, FormResponseSchema, FormResponsesResponse, FormResponsesResponseSchema };
|
|
29
|
+
//# sourceMappingURL=schema.d.mts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/lib/modules/form-responses/schema.ts
|
|
3
|
+
const FormResponseSchema = z.object({
|
|
4
|
+
clientId: z.string().optional(),
|
|
5
|
+
companyId: z.string().optional(),
|
|
6
|
+
createdAt: z.iso.datetime(),
|
|
7
|
+
formId: z.string().optional(),
|
|
8
|
+
id: z.string(),
|
|
9
|
+
object: z.literal("formResponse"),
|
|
10
|
+
status: z.string().optional(),
|
|
11
|
+
updatedAt: z.iso.datetime().optional()
|
|
12
|
+
});
|
|
13
|
+
const FormResponseItemResponseSchema = FormResponseSchema;
|
|
14
|
+
const FormResponsesResponseSchema = z.object({ data: z.array(FormResponseSchema).nullable() });
|
|
15
|
+
const FormResponseCreateRequestSchema = z.object({
|
|
16
|
+
clientId: z.string(),
|
|
17
|
+
companyId: z.string().optional(),
|
|
18
|
+
formId: z.string()
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { FormResponseCreateRequestSchema, FormResponseItemResponseSchema, FormResponseSchema, FormResponsesResponseSchema };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=schema.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.mjs","names":[],"sources":["../../../../src/lib/modules/form-responses/schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\n// ---------------------------------------------------------------------------\n// Base types\n// ---------------------------------------------------------------------------\n\nexport interface FormResponse {\n clientId?: string;\n companyId?: string;\n createdAt: string;\n formId?: string;\n id: string;\n object: \"formResponse\";\n status?: string;\n updatedAt?: string;\n}\n\nexport const FormResponseSchema: z.ZodType<FormResponse> = z.object({\n clientId: z.string().optional(),\n companyId: z.string().optional(),\n createdAt: z.iso.datetime(),\n formId: z.string().optional(),\n id: z.string(),\n object: z.literal(\"formResponse\"),\n status: z.string().optional(),\n updatedAt: z.iso.datetime().optional(),\n});\n\n// ---------------------------------------------------------------------------\n// Response types\n// ---------------------------------------------------------------------------\n\nexport const FormResponseItemResponseSchema: z.ZodType<FormResponse> = FormResponseSchema;\nexport type FormResponseItemResponse = FormResponse;\n\nexport interface FormResponsesResponse {\n data: FormResponse[] | null;\n}\n\nexport const FormResponsesResponseSchema: z.ZodType<FormResponsesResponse> = z.object({\n data: z.array(FormResponseSchema).nullable(),\n});\n\n// ---------------------------------------------------------------------------\n// Request types\n// ---------------------------------------------------------------------------\n\nexport interface FormResponseCreateRequest {\n clientId: string;\n companyId?: string;\n formId: string;\n}\n\nexport const FormResponseCreateRequestSchema: z.ZodType<FormResponseCreateRequest> = z.object({\n clientId: z.string(),\n companyId: z.string().optional(),\n formId: z.string(),\n});\n"],"mappings":";;AAiBA,MAAa,qBAA8C,EAAE,OAAO;CAClE,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,WAAW,EAAE,IAAI,UAAU;CAC3B,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC7B,IAAI,EAAE,QAAQ;CACd,QAAQ,EAAE,QAAQ,eAAe;CACjC,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC7B,WAAW,EAAE,IAAI,UAAU,CAAC,UAAU;CACvC,CAAC;AAMF,MAAa,iCAA0D;AAOvE,MAAa,8BAAgE,EAAE,OAAO,EACpF,MAAM,EAAE,MAAM,mBAAmB,CAAC,UAAU,EAC7C,CAAC;AAYF,MAAa,kCAAwE,EAAE,OAAO;CAC5F,UAAU,EAAE,QAAQ;CACpB,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,QAAQ,EAAE,QAAQ;CACnB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Transport } from "../../../transport/http.mjs";
|
|
2
|
+
import { ListArgs } from "../../pagination/paginate.mjs";
|
|
3
|
+
import { Form, FormsDataResponse } from "./schema.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/lib/modules/forms/resource.d.ts
|
|
6
|
+
declare class FormsResource {
|
|
7
|
+
#private;
|
|
8
|
+
constructor({
|
|
9
|
+
transport,
|
|
10
|
+
validateResponses
|
|
11
|
+
}: {
|
|
12
|
+
transport: Transport;
|
|
13
|
+
validateResponses: boolean;
|
|
14
|
+
});
|
|
15
|
+
/** List forms. */
|
|
16
|
+
list(args?: ListArgs): Promise<FormsDataResponse>;
|
|
17
|
+
/** Retrieve a single form by ID. */
|
|
18
|
+
retrieve(id: string): Promise<Form>;
|
|
19
|
+
/** Iterate over all forms, automatically paginating. Default limit per page: 500. */
|
|
20
|
+
listAll(args?: Omit<ListArgs, "nextToken">): Promise<Form[]>;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { FormsResource };
|
|
24
|
+
//# sourceMappingURL=resource.d.mts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { buildSearchParams } from "../../../transport/build-search-params.mjs";
|
|
2
|
+
import { parseResponse } from "../../../transport/parse-response.mjs";
|
|
3
|
+
import { paginate } from "../../pagination/paginate.mjs";
|
|
4
|
+
import { FormDataResponseSchema, FormsDataResponseSchema } from "./schema.mjs";
|
|
5
|
+
//#region src/lib/modules/forms/resource.ts
|
|
6
|
+
var FormsResource = class {
|
|
7
|
+
#transport;
|
|
8
|
+
#validate;
|
|
9
|
+
constructor({ transport, validateResponses }) {
|
|
10
|
+
this.#transport = transport;
|
|
11
|
+
this.#validate = validateResponses;
|
|
12
|
+
}
|
|
13
|
+
/** List forms. */
|
|
14
|
+
async list(args = {}) {
|
|
15
|
+
return parseResponse({
|
|
16
|
+
schema: FormsDataResponseSchema,
|
|
17
|
+
data: await this.#transport.get("v1/forms", { searchParams: buildSearchParams(args) }),
|
|
18
|
+
validate: this.#validate
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/** Retrieve a single form by ID. */
|
|
22
|
+
async retrieve(id) {
|
|
23
|
+
return parseResponse({
|
|
24
|
+
schema: FormDataResponseSchema,
|
|
25
|
+
data: await this.#transport.get(`v1/forms/${id}`),
|
|
26
|
+
validate: this.#validate
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/** Iterate over all forms, automatically paginating. Default limit per page: 500. */
|
|
30
|
+
async listAll(args = {}) {
|
|
31
|
+
return paginate((listArgs) => this.list({
|
|
32
|
+
...args,
|
|
33
|
+
...listArgs
|
|
34
|
+
}), { limit: args.limit ?? 500 });
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { FormsResource };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=resource.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.mjs","names":["#transport","#validate"],"sources":["../../../../src/lib/modules/forms/resource.ts"],"sourcesContent":["import { paginate } from \"src/lib/pagination\";\nimport type { ListArgs } from \"src/lib/pagination\";\nimport { buildSearchParams } from \"src/transport/build-search-params\";\nimport type { Transport } from \"src/transport/http\";\nimport { parseResponse } from \"src/transport/parse-response\";\n\nimport { FormDataResponseSchema, FormsDataResponseSchema } from \"./schema\";\nimport type { Form, FormsDataResponse } from \"./schema\";\n\nexport class FormsResource {\n readonly #transport: Transport;\n readonly #validate: boolean;\n\n constructor({\n transport,\n validateResponses,\n }: {\n transport: Transport;\n validateResponses: boolean;\n }) {\n this.#transport = transport;\n this.#validate = validateResponses;\n }\n\n /** List forms. */\n async list(args: ListArgs = {}): Promise<FormsDataResponse> {\n const raw: unknown = await this.#transport.get(\"v1/forms\", {\n searchParams: buildSearchParams(args),\n });\n return parseResponse({ schema: FormsDataResponseSchema, data: raw, validate: this.#validate });\n }\n\n /** Retrieve a single form by ID. */\n async retrieve(id: string): Promise<Form> {\n const raw: unknown = await this.#transport.get(`v1/forms/${id}`);\n return parseResponse({ schema: FormDataResponseSchema, data: raw, validate: this.#validate });\n }\n\n /** Iterate over all forms, automatically paginating. Default limit per page: 500. */\n async listAll(args: Omit<ListArgs, \"nextToken\"> = {}): Promise<Form[]> {\n return paginate((listArgs) => this.list({ ...args, ...listArgs }), {\n limit: args.limit ?? 500,\n });\n }\n}\n"],"mappings":";;;;;AASA,IAAa,gBAAb,MAA2B;CACzB;CACA;CAEA,YAAY,EACV,WACA,qBAIC;AACD,QAAA,YAAkB;AAClB,QAAA,WAAiB;;;CAInB,MAAM,KAAK,OAAiB,EAAE,EAA8B;AAI1D,SAAO,cAAc;GAAE,QAAQ;GAAyB,MAAM,MAHnC,MAAA,UAAgB,IAAI,YAAY,EACzD,cAAc,kBAAkB,KAAK,EACtC,CAAC;GACiE,UAAU,MAAA;GAAgB,CAAC;;;CAIhG,MAAM,SAAS,IAA2B;AAExC,SAAO,cAAc;GAAE,QAAQ;GAAwB,MAAM,MADlC,MAAA,UAAgB,IAAI,YAAY,KAAK;GACE,UAAU,MAAA;GAAgB,CAAC;;;CAI/F,MAAM,QAAQ,OAAoC,EAAE,EAAmB;AACrE,SAAO,UAAU,aAAa,KAAK,KAAK;GAAE,GAAG;GAAM,GAAG;GAAU,CAAC,EAAE,EACjE,OAAO,KAAK,SAAS,KACtB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/lib/modules/forms/schema.d.ts
|
|
4
|
+
interface Form {
|
|
5
|
+
createdAt: string;
|
|
6
|
+
id: string;
|
|
7
|
+
latestSubmissionDate?: string | null;
|
|
8
|
+
name?: string;
|
|
9
|
+
object: "form";
|
|
10
|
+
updatedAt?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const FormSchema: z.ZodType<Form>;
|
|
13
|
+
declare const FormDataResponseSchema: z.ZodType<Form>;
|
|
14
|
+
type FormDataResponse = Form;
|
|
15
|
+
interface FormsDataResponse {
|
|
16
|
+
data: Form[] | null;
|
|
17
|
+
nextToken?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const FormsDataResponseSchema: z.ZodType<FormsDataResponse>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Form, FormDataResponse, FormDataResponseSchema, FormSchema, FormsDataResponse, FormsDataResponseSchema };
|
|
22
|
+
//# sourceMappingURL=schema.d.mts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/lib/modules/forms/schema.ts
|
|
3
|
+
const FormSchema = z.object({
|
|
4
|
+
createdAt: z.iso.datetime(),
|
|
5
|
+
id: z.string(),
|
|
6
|
+
latestSubmissionDate: z.string().nullable().optional(),
|
|
7
|
+
name: z.string().optional(),
|
|
8
|
+
object: z.literal("form"),
|
|
9
|
+
updatedAt: z.iso.datetime().optional()
|
|
10
|
+
});
|
|
11
|
+
const FormDataResponseSchema = FormSchema;
|
|
12
|
+
const FormsDataResponseSchema = z.object({
|
|
13
|
+
data: z.array(FormSchema).nullable(),
|
|
14
|
+
nextToken: z.string().optional()
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { FormDataResponseSchema, FormSchema, FormsDataResponseSchema };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=schema.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.mjs","names":[],"sources":["../../../../src/lib/modules/forms/schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\n// ---------------------------------------------------------------------------\n// Base types\n// ---------------------------------------------------------------------------\n\nexport interface Form {\n createdAt: string;\n id: string;\n latestSubmissionDate?: string | null;\n name?: string;\n object: \"form\";\n updatedAt?: string;\n}\n\nexport const FormSchema: z.ZodType<Form> = z.object({\n createdAt: z.iso.datetime(),\n id: z.string(),\n latestSubmissionDate: z.string().nullable().optional(),\n name: z.string().optional(),\n object: z.literal(\"form\"),\n updatedAt: z.iso.datetime().optional(),\n});\n\n// ---------------------------------------------------------------------------\n// Response types\n// ---------------------------------------------------------------------------\n\nexport const FormDataResponseSchema: z.ZodType<Form> = FormSchema;\nexport type FormDataResponse = Form;\n\nexport interface FormsDataResponse {\n data: Form[] | null;\n nextToken?: string;\n}\n\nexport const FormsDataResponseSchema: z.ZodType<FormsDataResponse> = z.object({\n data: z.array(FormSchema).nullable(),\n nextToken: z.string().optional(),\n});\n"],"mappings":";;AAeA,MAAa,aAA8B,EAAE,OAAO;CAClD,WAAW,EAAE,IAAI,UAAU;CAC3B,IAAI,EAAE,QAAQ;CACd,sBAAsB,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU;CACtD,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,QAAQ,EAAE,QAAQ,OAAO;CACzB,WAAW,EAAE,IAAI,UAAU,CAAC,UAAU;CACvC,CAAC;AAMF,MAAa,yBAA0C;AAQvD,MAAa,0BAAwD,EAAE,OAAO;CAC5E,MAAM,EAAE,MAAM,WAAW,CAAC,UAAU;CACpC,WAAW,EAAE,QAAQ,CAAC,UAAU;CACjC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AppConnection, AppConnectionCreateRequest, AppConnectionCreateRequestSchema, AppConnectionResponse, AppConnectionResponseSchema, AppConnectionSchema, AppConnectionType, AppConnectionTypeSchema, AppConnectionsResponse, AppConnectionsResponseSchema } from "./app-connections/schema.mjs";
|
|
2
|
+
import { AppInstall, AppInstallResponse, AppInstallResponseSchema, AppInstallSchema, AppInstallType, AppInstallTypeSchema, AppInstallsResponse, AppInstallsResponseSchema } from "./app-installs/schema.mjs";
|
|
3
|
+
import { Client, ClientCreateRequest, ClientCreateRequestSchema, ClientResponse, ClientResponseSchema, ClientSchema, ClientUpdateRequest, ClientUpdateRequestSchema, ClientsResponse, ClientsResponseSchema } from "./clients/schema.mjs";
|
|
4
|
+
import { CompaniesResponse, CompaniesResponseSchema, Company, CompanyCreateRequest, CompanyCreateRequestSchema, CompanyResponse, CompanyResponseSchema, CompanySchema, CompanyUpdateRequest, CompanyUpdateRequestSchema } from "./companies/schema.mjs";
|
|
5
|
+
import { ContractTemplate, ContractTemplateResponse, ContractTemplateResponseSchema, ContractTemplateSchema, ContractTemplatesResponse, ContractTemplatesResponseSchema } from "./contract-templates/schema.mjs";
|
|
6
|
+
import { Contract, ContractField, ContractFieldInputType, ContractFieldInputTypeSchema, ContractFieldSchema, ContractResponse, ContractResponseSchema, ContractSchema, ContractSendRequest, ContractSendRequestSchema, ContractStatus, ContractStatusSchema, ContractsResponse, ContractsResponseSchema } from "./contracts/schema.mjs";
|
|
7
|
+
import { CustomFieldOption, CustomFieldOptionSchema, ListCustomFieldOptionResponse, ListCustomFieldOptionResponseSchema } from "./custom-field-options/schema.mjs";
|
|
8
|
+
import { AddressValue, AddressValueSchema, CustomField, CustomFieldEntityType, CustomFieldEntityTypeSchema, CustomFieldSchema, CustomFieldType, CustomFieldTypeSchema, CustomFieldValue, CustomFieldValueSchema, ListCustomFieldResponse, ListCustomFieldResponseSchema } from "./custom-fields/schema.mjs";
|
|
9
|
+
import { AuditLogEvent, AuditLogEventResponse, AuditLogEventResponseSchema, AuditLogEventSchema, AuditLogEventsResponse, AuditLogEventsResponseSchema, ClientUserEventCreateRequest, EventActorType, EventActorTypeSchema, EventCreateRequest, EventCreateRequestSchema, EventSource, EventSourceSchema, InternalUserEventCreateRequest } from "./events/schema.mjs";
|
|
10
|
+
import { FileChannel, FileChannelCreateRequest, FileChannelCreateRequestSchema, FileChannelResponse, FileChannelResponseSchema, FileChannelSchema, FileChannelsResponse, FileChannelsResponseSchema } from "./file-channels/schema.mjs";
|
|
11
|
+
import { AssemblyFile, AssemblyFileResponse, AssemblyFileResponseSchema, AssemblyFileSchema, AssemblyFilesResponse, AssemblyFilesResponseSchema, FileType, FileTypeSchema } from "./files/schema.mjs";
|
|
12
|
+
import { FormResponse, FormResponseCreateRequest, FormResponseCreateRequestSchema, FormResponseItemResponse, FormResponseItemResponseSchema, FormResponseSchema, FormResponsesResponse, FormResponsesResponseSchema } from "./form-responses/schema.mjs";
|
|
13
|
+
import { Form, FormDataResponse, FormDataResponseSchema, FormSchema, FormsDataResponse, FormsDataResponseSchema } from "./forms/schema.mjs";
|
|
14
|
+
import { InternalUser, InternalUserResponse, InternalUserResponseSchema, InternalUserSchema, InternalUsersResponse, InternalUsersResponseSchema } from "./internal-users/schema.mjs";
|
|
15
|
+
import { InvoiceTemplate, InvoiceTemplateResponse, InvoiceTemplateResponseSchema, InvoiceTemplateSchema, InvoiceTemplatesResponse, InvoiceTemplatesResponseSchema } from "./invoice-templates/schema.mjs";
|
|
16
|
+
import { Invoice, InvoiceCreateRequest, InvoiceCreateRequestSchema, InvoiceLineItem, InvoiceLineItemRequest, InvoiceLineItemRequestSchema, InvoiceLineItemSchema, InvoicePaymentMethodPreferenceRequest, InvoicePaymentMethodPreferenceRequestSchema, InvoiceResponse, InvoiceResponseSchema, InvoiceSchema, InvoiceStatus, InvoiceStatusSchema, InvoicesResponse, InvoicesResponseSchema, PaymentMethodPreference, PaymentMethodPreferenceSchema, PaymentMethodType, PaymentMethodTypeSchema } from "./invoices/schema.mjs";
|
|
17
|
+
import { MessageChannel, MessageChannelCreateRequest, MessageChannelCreateRequestSchema, MessageChannelResponse, MessageChannelResponseSchema, MessageChannelSchema, MessageChannelsResponse, MessageChannelsResponseSchema } from "./message-channels/schema.mjs";
|
|
18
|
+
import { Message, MessageResponse, MessageResponseSchema, MessageSchema, MessagesResponse, MessagesResponseSchema, SendMessageRequest, SendMessageRequestSchema } from "./messages/schema.mjs";
|
|
19
|
+
import { Note, NoteCreateRequest, NoteCreateRequestSchema, NoteResponse, NoteResponseSchema, NoteSchema, NoteUpdateRequest, NoteUpdateRequestSchema, NotesResponse, NotesResponseSchema } from "./notes/schema.mjs";
|
|
20
|
+
import { EmailDeliveryTarget, EmailDeliveryTargetSchema, InProductDeliveryTarget, InProductDeliveryTargetSchema, Notification, NotificationCreateRequest, NotificationCreateRequestSchema, NotificationDeliveryTargets, NotificationDeliveryTargetsSchema, NotificationResponse, NotificationResponseSchema, NotificationSchema, NotificationsResponse, NotificationsResponseSchema } from "./notifications/schema.mjs";
|
|
21
|
+
import { Payment, PaymentResponse, PaymentResponseSchema, PaymentSchema, PaymentsResponse, PaymentsResponseSchema } from "./payments/schema.mjs";
|
|
22
|
+
import { Price, PriceResponse, PriceResponseSchema, PriceSchema, PricesResponse, PricesResponseSchema } from "./prices/schema.mjs";
|
|
23
|
+
import { Product, ProductResponse, ProductResponseSchema, ProductSchema, ProductsResponse, ProductsResponseSchema } from "./products/schema.mjs";
|
|
24
|
+
import { SubscriptionTemplate, SubscriptionTemplateResponse, SubscriptionTemplateResponseSchema, SubscriptionTemplateSchema, SubscriptionTemplatesResponse, SubscriptionTemplatesResponseSchema } from "./subscription-templates/schema.mjs";
|
|
25
|
+
import { Subscription, SubscriptionCreateRequest, SubscriptionCreateRequestSchema, SubscriptionResponse, SubscriptionResponseSchema, SubscriptionSchema, SubscriptionsResponse, SubscriptionsResponseSchema } from "./subscriptions/schema.mjs";
|
|
26
|
+
import { TaskTemplate, TaskTemplateResponse, TaskTemplateResponseSchema, TaskTemplateSchema, TaskTemplatesResponse, TaskTemplatesResponseSchema } from "./task-templates/schema.mjs";
|
|
27
|
+
import { Task, TaskCreateRequest, TaskCreateRequestSchema, TaskResponse, TaskResponseSchema, TaskSchema, TaskStatus, TaskStatusSchema, TaskUpdateRequest, TaskUpdateRequestSchema, TasksResponse, TasksResponseSchema } from "./tasks/schema.mjs";
|
|
28
|
+
import { Workspace, WorkspaceResponse, WorkspaceResponseSchema, WorkspaceSchema } from "./workspace/schema.mjs";
|