webflow-api 2.3.5 → 2.3.6
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/api/errors/TooManyRequestsError.d.ts +2 -1
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/accessGroups/client/Client.js +8 -2
- package/api/resources/assets/client/Client.js +64 -16
- package/api/resources/collections/client/Client.js +40 -10
- package/api/resources/collections/resources/fields/client/Client.js +16 -4
- package/api/resources/collections/resources/items/client/Client.d.ts +2 -2
- package/api/resources/collections/resources/items/client/Client.js +98 -26
- package/api/resources/ecommerce/client/Client.js +8 -2
- package/api/resources/forms/client/Client.d.ts +2 -1
- package/api/resources/forms/client/Client.js +51 -11
- package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
- package/api/resources/forms/client/requests/index.d.ts +1 -0
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +0 -1
- package/api/resources/inventory/client/Client.js +16 -4
- package/api/resources/orders/client/Client.js +48 -12
- package/api/resources/pages/client/Client.d.ts +5 -1
- package/api/resources/pages/client/Client.js +45 -11
- package/api/resources/pages/resources/scripts/client/Client.js +24 -6
- package/api/resources/products/client/Client.js +48 -12
- package/api/resources/scripts/client/Client.js +24 -6
- package/api/resources/sites/client/Client.d.ts +1 -3
- package/api/resources/sites/client/Client.js +33 -15
- package/api/resources/sites/resources/activityLogs/client/Client.js +8 -2
- package/api/resources/sites/resources/scripts/client/Client.js +32 -8
- package/api/resources/token/client/Client.js +2 -2
- package/api/resources/users/client/Client.js +40 -10
- package/api/resources/webhooks/client/Client.d.ts +8 -3
- package/api/resources/webhooks/client/Client.js +40 -11
- package/api/resources/webhooks/client/index.d.ts +1 -1
- package/api/resources/webhooks/client/index.js +0 -15
- package/api/types/Asset.d.ts +10 -8
- package/api/types/Form.d.ts +2 -0
- package/api/types/FormSubmissionList.d.ts +1 -1
- package/api/types/OauthScope.d.ts +9 -1
- package/api/types/OauthScope.js +2 -0
- package/api/types/TooManyRequestsErrorBody.d.ts +9 -0
- package/api/types/Webhook.d.ts +5 -5
- package/api/types/WebhookFilter.d.ts +10 -0
- package/{dist/api/resources/webhooks/client/requests/index.js → api/types/WebhookFilter.js} +3 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/errors/TooManyRequestsError.d.ts +2 -1
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/accessGroups/client/Client.js +8 -2
- package/dist/api/resources/assets/client/Client.js +64 -16
- package/dist/api/resources/collections/client/Client.js +40 -10
- package/dist/api/resources/collections/resources/fields/client/Client.js +16 -4
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +2 -2
- package/dist/api/resources/collections/resources/items/client/Client.js +98 -26
- package/dist/api/resources/ecommerce/client/Client.js +8 -2
- package/dist/api/resources/forms/client/Client.d.ts +2 -1
- package/dist/api/resources/forms/client/Client.js +51 -11
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
- package/{api/resources/webhooks/client/requests/index.js → dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.js} +3 -0
- package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +0 -1
- package/dist/api/resources/inventory/client/Client.js +16 -4
- package/dist/api/resources/orders/client/Client.js +48 -12
- package/dist/api/resources/pages/client/Client.d.ts +5 -1
- package/dist/api/resources/pages/client/Client.js +45 -11
- package/dist/api/resources/pages/resources/scripts/client/Client.js +24 -6
- package/dist/api/resources/products/client/Client.js +48 -12
- package/dist/api/resources/scripts/client/Client.js +24 -6
- package/dist/api/resources/sites/client/Client.d.ts +1 -3
- package/dist/api/resources/sites/client/Client.js +33 -15
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +8 -2
- package/dist/api/resources/sites/resources/scripts/client/Client.js +32 -8
- package/dist/api/resources/token/client/Client.js +2 -2
- package/dist/api/resources/users/client/Client.js +40 -10
- package/dist/api/resources/webhooks/client/Client.d.ts +8 -3
- package/dist/api/resources/webhooks/client/Client.js +40 -11
- package/dist/api/resources/webhooks/client/index.d.ts +1 -1
- package/dist/api/resources/webhooks/client/index.js +0 -15
- package/dist/api/types/Asset.d.ts +10 -8
- package/dist/api/types/Form.d.ts +2 -0
- package/dist/api/types/FormSubmissionList.d.ts +1 -1
- package/dist/api/types/OauthScope.d.ts +9 -1
- package/dist/api/types/OauthScope.js +2 -0
- package/dist/api/types/TooManyRequestsErrorBody.d.ts +9 -0
- package/dist/api/types/TooManyRequestsErrorBody.js +5 -0
- package/dist/api/types/Webhook.d.ts +5 -5
- package/dist/api/types/WebhookFilter.d.ts +10 -0
- package/dist/api/types/WebhookFilter.js +5 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/index.d.ts +0 -2
- package/dist/serialization/resources/index.js +1 -3
- package/dist/serialization/types/Asset.d.ts +5 -4
- package/dist/serialization/types/Asset.js +5 -4
- package/dist/serialization/types/Form.d.ts +1 -0
- package/dist/serialization/types/Form.js +1 -0
- package/dist/serialization/types/FormSubmissionList.d.ts +1 -1
- package/dist/serialization/types/FormSubmissionList.js +1 -1
- package/dist/serialization/types/OauthScope.d.ts +1 -1
- package/dist/serialization/types/OauthScope.js +2 -0
- package/dist/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
- package/{serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js → dist/serialization/types/TooManyRequestsErrorBody.js} +7 -7
- package/dist/serialization/types/Webhook.d.ts +4 -3
- package/dist/serialization/types/Webhook.js +4 -3
- package/dist/serialization/types/WebhookFilter.d.ts +12 -0
- package/dist/serialization/{resources/webhooks/client/requests/WebhooksCreateRequest.js → types/WebhookFilter.js} +4 -7
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/wrapper/ItemsClient.js +7 -1
- package/package.json +1 -1
- package/serialization/resources/index.d.ts +0 -2
- package/serialization/resources/index.js +1 -3
- package/serialization/types/Asset.d.ts +5 -4
- package/serialization/types/Asset.js +5 -4
- package/serialization/types/Form.d.ts +1 -0
- package/serialization/types/Form.js +1 -0
- package/serialization/types/FormSubmissionList.d.ts +1 -1
- package/serialization/types/FormSubmissionList.js +1 -1
- package/serialization/types/OauthScope.d.ts +1 -1
- package/serialization/types/OauthScope.js +2 -0
- package/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
- package/serialization/types/TooManyRequestsErrorBody.js +36 -0
- package/serialization/types/Webhook.d.ts +4 -3
- package/serialization/types/Webhook.js +4 -3
- package/serialization/types/WebhookFilter.d.ts +12 -0
- package/serialization/types/WebhookFilter.js +33 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/wrapper/ItemsClient.js +7 -1
- package/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
- package/api/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
- package/dist/api/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/index.js +0 -17
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -15
- package/dist/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/requests/index.js +0 -5
- package/dist/serialization/resources/webhooks/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/index.js +0 -17
- package/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/index.js +0 -17
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -15
- package/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/requests/index.js +0 -5
- package/serialization/resources/webhooks/index.d.ts +0 -1
- package/serialization/resources/webhooks/index.js +0 -17
- /package/api/resources/{webhooks/client/requests/WebhooksCreateRequest.js → forms/client/requests/FormsListSubmissionsRequest.js} +0 -0
- /package/{dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.js → api/types/TooManyRequestsErrorBody.js} +0 -0
|
@@ -5,17 +5,17 @@ import * as Webflow from "../index";
|
|
|
5
5
|
export interface Webhook {
|
|
6
6
|
/** Unique identifier for the Webhook registration */
|
|
7
7
|
id?: string;
|
|
8
|
+
triggerType?: Webflow.TriggerType;
|
|
9
|
+
/** URL to send the Webhook payload to */
|
|
10
|
+
url?: string;
|
|
8
11
|
/** Unique identifier for the Workspace the Webhook is registered in */
|
|
9
12
|
workspaceId?: string;
|
|
10
13
|
/** Unique identifier for the Site the Webhook is registered in */
|
|
11
14
|
siteId?: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
filter?: Record<string, unknown>;
|
|
15
|
+
/** Only supported for the `form_submission` trigger type. Filter for the form you want Webhooks to be sent for. */
|
|
16
|
+
filter?: Webflow.WebhookFilter;
|
|
15
17
|
/** Date the Webhook instance was last triggered */
|
|
16
18
|
lastTriggered?: Date;
|
|
17
19
|
/** Date the Webhook registration was created */
|
|
18
20
|
createdOn?: Date;
|
|
19
|
-
/** URL to send the Webhook payload to */
|
|
20
|
-
url?: string;
|
|
21
21
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Only supported for the `form_submission` trigger type. Filter for the form you want Webhooks to be sent for.
|
|
6
|
+
*/
|
|
7
|
+
export interface WebhookFilter {
|
|
8
|
+
/** The name of the form you'd like to recieve notifications for. */
|
|
9
|
+
name?: string;
|
|
10
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./OauthScope";
|
|
2
2
|
export * from "./ForbiddenErrorBody";
|
|
3
|
+
export * from "./TooManyRequestsErrorBody";
|
|
3
4
|
export * from "./BadRequestErrorBody";
|
|
4
5
|
export * from "./ConflictErrorBody";
|
|
5
6
|
export * from "./AuthorizedUser";
|
|
@@ -63,6 +64,7 @@ export * from "./AssetUpload";
|
|
|
63
64
|
export * from "./AssetFolder";
|
|
64
65
|
export * from "./AssetFolderList";
|
|
65
66
|
export * from "./TriggerType";
|
|
67
|
+
export * from "./WebhookFilter";
|
|
66
68
|
export * from "./Webhook";
|
|
67
69
|
export * from "./WebhookList";
|
|
68
70
|
export * from "./FormFieldValueType";
|
package/dist/api/types/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./OauthScope"), exports);
|
|
18
18
|
__exportStar(require("./ForbiddenErrorBody"), exports);
|
|
19
|
+
__exportStar(require("./TooManyRequestsErrorBody"), exports);
|
|
19
20
|
__exportStar(require("./BadRequestErrorBody"), exports);
|
|
20
21
|
__exportStar(require("./ConflictErrorBody"), exports);
|
|
21
22
|
__exportStar(require("./AuthorizedUser"), exports);
|
|
@@ -79,6 +80,7 @@ __exportStar(require("./AssetUpload"), exports);
|
|
|
79
80
|
__exportStar(require("./AssetFolder"), exports);
|
|
80
81
|
__exportStar(require("./AssetFolderList"), exports);
|
|
81
82
|
__exportStar(require("./TriggerType"), exports);
|
|
83
|
+
__exportStar(require("./WebhookFilter"), exports);
|
|
82
84
|
__exportStar(require("./Webhook"), exports);
|
|
83
85
|
__exportStar(require("./WebhookList"), exports);
|
|
84
86
|
__exportStar(require("./FormFieldValueType"), exports);
|
|
@@ -19,8 +19,6 @@ export * as scripts from "./scripts";
|
|
|
19
19
|
export * from "./scripts/client/requests";
|
|
20
20
|
export * as assets from "./assets";
|
|
21
21
|
export * from "./assets/client/requests";
|
|
22
|
-
export * as webhooks from "./webhooks";
|
|
23
|
-
export * from "./webhooks/client/requests";
|
|
24
22
|
export * as forms from "./forms";
|
|
25
23
|
export * from "./forms/client/requests";
|
|
26
24
|
export * from "./users/client/requests";
|
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.forms = exports.
|
|
29
|
+
exports.forms = exports.assets = exports.scripts = exports.sites = exports.inventory = exports.orders = exports.products = exports.accessGroups = exports.users = exports.pages = exports.collections = void 0;
|
|
30
30
|
exports.collections = __importStar(require("./collections"));
|
|
31
31
|
exports.pages = __importStar(require("./pages"));
|
|
32
32
|
__exportStar(require("./pages/types"), exports);
|
|
@@ -48,8 +48,6 @@ exports.scripts = __importStar(require("./scripts"));
|
|
|
48
48
|
__exportStar(require("./scripts/client/requests"), exports);
|
|
49
49
|
exports.assets = __importStar(require("./assets"));
|
|
50
50
|
__exportStar(require("./assets/client/requests"), exports);
|
|
51
|
-
exports.webhooks = __importStar(require("./webhooks"));
|
|
52
|
-
__exportStar(require("./webhooks/client/requests"), exports);
|
|
53
51
|
exports.forms = __importStar(require("./forms"));
|
|
54
52
|
__exportStar(require("./forms/client/requests"), exports);
|
|
55
53
|
__exportStar(require("./users/client/requests"), exports);
|
|
@@ -9,14 +9,15 @@ export declare const Asset: core.serialization.ObjectSchema<serializers.Asset.Ra
|
|
|
9
9
|
export declare namespace Asset {
|
|
10
10
|
interface Raw {
|
|
11
11
|
id?: string | null;
|
|
12
|
-
originalFileName?: string | null;
|
|
13
|
-
displayName?: string | null;
|
|
14
12
|
contentType?: string | null;
|
|
15
13
|
size?: number | null;
|
|
16
14
|
siteId?: string | null;
|
|
17
|
-
createdOn?: string | null;
|
|
18
|
-
lastUpdated?: string | null;
|
|
19
15
|
hostedUrl?: string | null;
|
|
16
|
+
originalFileName?: string | null;
|
|
17
|
+
displayName?: string | null;
|
|
18
|
+
lastUpdated?: string | null;
|
|
19
|
+
createdOn?: string | null;
|
|
20
20
|
variants?: AssetVariant.Raw[] | null;
|
|
21
|
+
altText?: string | null;
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -31,13 +31,14 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const AssetVariant_1 = require("./AssetVariant");
|
|
32
32
|
exports.Asset = core.serialization.object({
|
|
33
33
|
id: core.serialization.string().optional(),
|
|
34
|
-
originalFileName: core.serialization.string().optional(),
|
|
35
|
-
displayName: core.serialization.string().optional(),
|
|
36
34
|
contentType: core.serialization.string().optional(),
|
|
37
35
|
size: core.serialization.number().optional(),
|
|
38
36
|
siteId: core.serialization.string().optional(),
|
|
39
|
-
createdOn: core.serialization.date().optional(),
|
|
40
|
-
lastUpdated: core.serialization.date().optional(),
|
|
41
37
|
hostedUrl: core.serialization.string().optional(),
|
|
38
|
+
originalFileName: core.serialization.string().optional(),
|
|
39
|
+
displayName: core.serialization.string().optional(),
|
|
40
|
+
lastUpdated: core.serialization.date().optional(),
|
|
41
|
+
createdOn: core.serialization.date().optional(),
|
|
42
42
|
variants: core.serialization.list(AssetVariant_1.AssetVariant).optional(),
|
|
43
|
+
altText: core.serialization.string().optional(),
|
|
43
44
|
});
|
|
@@ -41,5 +41,6 @@ exports.Form = core.serialization.object({
|
|
|
41
41
|
siteDomainId: core.serialization.string().optional(),
|
|
42
42
|
pageId: core.serialization.string().optional(),
|
|
43
43
|
pageName: core.serialization.string().optional(),
|
|
44
|
+
formElementId: core.serialization.string().optional(),
|
|
44
45
|
workspaceId: core.serialization.string().optional(),
|
|
45
46
|
});
|
|
@@ -9,7 +9,7 @@ import { Pagination } from "./Pagination";
|
|
|
9
9
|
export declare const FormSubmissionList: core.serialization.ObjectSchema<serializers.FormSubmissionList.Raw, Webflow.FormSubmissionList>;
|
|
10
10
|
export declare namespace FormSubmissionList {
|
|
11
11
|
interface Raw {
|
|
12
|
-
|
|
12
|
+
formSubmissions?: FormSubmission.Raw[] | null;
|
|
13
13
|
pagination?: Pagination.Raw | null;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -31,6 +31,6 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const FormSubmission_1 = require("./FormSubmission");
|
|
32
32
|
const Pagination_1 = require("./Pagination");
|
|
33
33
|
exports.FormSubmissionList = core.serialization.object({
|
|
34
|
-
|
|
34
|
+
formSubmissions: core.serialization.list(FormSubmission_1.FormSubmission).optional(),
|
|
35
35
|
pagination: Pagination_1.Pagination.optional(),
|
|
36
36
|
});
|
|
@@ -6,5 +6,5 @@ import * as Webflow from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const OauthScope: core.serialization.Schema<serializers.OauthScope.Raw, Webflow.OauthScope>;
|
|
8
8
|
export declare namespace OauthScope {
|
|
9
|
-
type Raw = "authorized_user:read" | "assets:read" | "assets:write" | "cms:read" | "cms:write" | "custom_code:read" | "custom_code:write" | "ecommerce:read" | "ecommerce:write" | "forms:read" | "forms:write" | "pages:read" | "pages:write" | "sites:read" | "sites:write" | "users:read" | "site_activity:read" | "users:write" | "workspace:read" | "workspace:write";
|
|
9
|
+
type Raw = "authorized_user:read" | "assets:read" | "assets:write" | "cms:read" | "cms:write" | "custom_code:read" | "custom_code:write" | "ecommerce:read" | "ecommerce:write" | "forms:read" | "forms:write" | "pages:read" | "pages:write" | "sites:read" | "sites:write" | "users:read" | "site_activity:read" | "users:write" | "workspace:read" | "workspace:write" | "site_config:read" | "site_config:write";
|
|
10
10
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Webflow from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const TooManyRequestsErrorBody: core.serialization.ObjectSchema<serializers.TooManyRequestsErrorBody.Raw, Webflow.TooManyRequestsErrorBody>;
|
|
8
|
+
export declare namespace TooManyRequestsErrorBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
message?: string | null;
|
|
11
|
+
code?: string | null;
|
|
12
|
+
externalReference?: string | null;
|
|
13
|
+
details?: unknown[] | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -26,11 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
const core = __importStar(require("
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
exports.TooManyRequestsErrorBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.TooManyRequestsErrorBody = core.serialization.object({
|
|
32
|
+
message: core.serialization.string().optional(),
|
|
33
|
+
code: core.serialization.string().optional(),
|
|
34
|
+
externalReference: core.serialization.string().optional(),
|
|
35
|
+
details: core.serialization.list(core.serialization.unknown()).optional(),
|
|
36
36
|
});
|
|
@@ -5,16 +5,17 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Webflow from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { TriggerType } from "./TriggerType";
|
|
8
|
+
import { WebhookFilter } from "./WebhookFilter";
|
|
8
9
|
export declare const Webhook: core.serialization.ObjectSchema<serializers.Webhook.Raw, Webflow.Webhook>;
|
|
9
10
|
export declare namespace Webhook {
|
|
10
11
|
interface Raw {
|
|
11
12
|
id?: string | null;
|
|
13
|
+
triggerType?: TriggerType.Raw | null;
|
|
14
|
+
url?: string | null;
|
|
12
15
|
workspaceId?: string | null;
|
|
13
16
|
siteId?: string | null;
|
|
14
|
-
|
|
15
|
-
filter?: Record<string, unknown> | null;
|
|
17
|
+
filter?: WebhookFilter.Raw | null;
|
|
16
18
|
lastTriggered?: string | null;
|
|
17
19
|
createdOn?: string | null;
|
|
18
|
-
url?: string | null;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
@@ -29,13 +29,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Webhook = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const TriggerType_1 = require("./TriggerType");
|
|
32
|
+
const WebhookFilter_1 = require("./WebhookFilter");
|
|
32
33
|
exports.Webhook = core.serialization.object({
|
|
33
34
|
id: core.serialization.string().optional(),
|
|
35
|
+
triggerType: TriggerType_1.TriggerType.optional(),
|
|
36
|
+
url: core.serialization.string().optional(),
|
|
34
37
|
workspaceId: core.serialization.string().optional(),
|
|
35
38
|
siteId: core.serialization.string().optional(),
|
|
36
|
-
|
|
37
|
-
filter: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
39
|
+
filter: WebhookFilter_1.WebhookFilter.optional(),
|
|
38
40
|
lastTriggered: core.serialization.date().optional(),
|
|
39
41
|
createdOn: core.serialization.date().optional(),
|
|
40
|
-
url: core.serialization.string().optional(),
|
|
41
42
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Webflow from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const WebhookFilter: core.serialization.ObjectSchema<serializers.WebhookFilter.Raw, Webflow.WebhookFilter>;
|
|
8
|
+
export declare namespace WebhookFilter {
|
|
9
|
+
interface Raw {
|
|
10
|
+
name?: string | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -26,11 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
const core = __importStar(require("
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
triggerType: TriggerType_1.TriggerType,
|
|
34
|
-
url: core.serialization.string(),
|
|
35
|
-
filter: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
29
|
+
exports.WebhookFilter = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.WebhookFilter = core.serialization.object({
|
|
32
|
+
name: core.serialization.string().optional(),
|
|
36
33
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./OauthScope";
|
|
2
2
|
export * from "./ForbiddenErrorBody";
|
|
3
|
+
export * from "./TooManyRequestsErrorBody";
|
|
3
4
|
export * from "./BadRequestErrorBody";
|
|
4
5
|
export * from "./ConflictErrorBody";
|
|
5
6
|
export * from "./AuthorizedUser";
|
|
@@ -63,6 +64,7 @@ export * from "./AssetUpload";
|
|
|
63
64
|
export * from "./AssetFolder";
|
|
64
65
|
export * from "./AssetFolderList";
|
|
65
66
|
export * from "./TriggerType";
|
|
67
|
+
export * from "./WebhookFilter";
|
|
66
68
|
export * from "./Webhook";
|
|
67
69
|
export * from "./WebhookList";
|
|
68
70
|
export * from "./FormFieldValueType";
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./OauthScope"), exports);
|
|
18
18
|
__exportStar(require("./ForbiddenErrorBody"), exports);
|
|
19
|
+
__exportStar(require("./TooManyRequestsErrorBody"), exports);
|
|
19
20
|
__exportStar(require("./BadRequestErrorBody"), exports);
|
|
20
21
|
__exportStar(require("./ConflictErrorBody"), exports);
|
|
21
22
|
__exportStar(require("./AuthorizedUser"), exports);
|
|
@@ -79,6 +80,7 @@ __exportStar(require("./AssetUpload"), exports);
|
|
|
79
80
|
__exportStar(require("./AssetFolder"), exports);
|
|
80
81
|
__exportStar(require("./AssetFolderList"), exports);
|
|
81
82
|
__exportStar(require("./TriggerType"), exports);
|
|
83
|
+
__exportStar(require("./WebhookFilter"), exports);
|
|
82
84
|
__exportStar(require("./Webhook"), exports);
|
|
83
85
|
__exportStar(require("./WebhookList"), exports);
|
|
84
86
|
__exportStar(require("./FormFieldValueType"), exports);
|
|
@@ -109,7 +109,13 @@ class Client extends Client_1.Items {
|
|
|
109
109
|
case 404:
|
|
110
110
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
111
111
|
case 429:
|
|
112
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
112
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
113
|
+
unrecognizedObjectKeys: "passthrough",
|
|
114
|
+
allowUnrecognizedUnionMembers: true,
|
|
115
|
+
allowUnrecognizedEnumValues: true,
|
|
116
|
+
skipValidation: true,
|
|
117
|
+
breadcrumbsPrefix: ["response"],
|
|
118
|
+
}));
|
|
113
119
|
case 500:
|
|
114
120
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
115
121
|
default:
|
package/package.json
CHANGED
|
@@ -19,8 +19,6 @@ export * as scripts from "./scripts";
|
|
|
19
19
|
export * from "./scripts/client/requests";
|
|
20
20
|
export * as assets from "./assets";
|
|
21
21
|
export * from "./assets/client/requests";
|
|
22
|
-
export * as webhooks from "./webhooks";
|
|
23
|
-
export * from "./webhooks/client/requests";
|
|
24
22
|
export * as forms from "./forms";
|
|
25
23
|
export * from "./forms/client/requests";
|
|
26
24
|
export * from "./users/client/requests";
|
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.forms = exports.
|
|
29
|
+
exports.forms = exports.assets = exports.scripts = exports.sites = exports.inventory = exports.orders = exports.products = exports.accessGroups = exports.users = exports.pages = exports.collections = void 0;
|
|
30
30
|
exports.collections = __importStar(require("./collections"));
|
|
31
31
|
exports.pages = __importStar(require("./pages"));
|
|
32
32
|
__exportStar(require("./pages/types"), exports);
|
|
@@ -48,8 +48,6 @@ exports.scripts = __importStar(require("./scripts"));
|
|
|
48
48
|
__exportStar(require("./scripts/client/requests"), exports);
|
|
49
49
|
exports.assets = __importStar(require("./assets"));
|
|
50
50
|
__exportStar(require("./assets/client/requests"), exports);
|
|
51
|
-
exports.webhooks = __importStar(require("./webhooks"));
|
|
52
|
-
__exportStar(require("./webhooks/client/requests"), exports);
|
|
53
51
|
exports.forms = __importStar(require("./forms"));
|
|
54
52
|
__exportStar(require("./forms/client/requests"), exports);
|
|
55
53
|
__exportStar(require("./users/client/requests"), exports);
|
|
@@ -9,14 +9,15 @@ export declare const Asset: core.serialization.ObjectSchema<serializers.Asset.Ra
|
|
|
9
9
|
export declare namespace Asset {
|
|
10
10
|
interface Raw {
|
|
11
11
|
id?: string | null;
|
|
12
|
-
originalFileName?: string | null;
|
|
13
|
-
displayName?: string | null;
|
|
14
12
|
contentType?: string | null;
|
|
15
13
|
size?: number | null;
|
|
16
14
|
siteId?: string | null;
|
|
17
|
-
createdOn?: string | null;
|
|
18
|
-
lastUpdated?: string | null;
|
|
19
15
|
hostedUrl?: string | null;
|
|
16
|
+
originalFileName?: string | null;
|
|
17
|
+
displayName?: string | null;
|
|
18
|
+
lastUpdated?: string | null;
|
|
19
|
+
createdOn?: string | null;
|
|
20
20
|
variants?: AssetVariant.Raw[] | null;
|
|
21
|
+
altText?: string | null;
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -31,13 +31,14 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const AssetVariant_1 = require("./AssetVariant");
|
|
32
32
|
exports.Asset = core.serialization.object({
|
|
33
33
|
id: core.serialization.string().optional(),
|
|
34
|
-
originalFileName: core.serialization.string().optional(),
|
|
35
|
-
displayName: core.serialization.string().optional(),
|
|
36
34
|
contentType: core.serialization.string().optional(),
|
|
37
35
|
size: core.serialization.number().optional(),
|
|
38
36
|
siteId: core.serialization.string().optional(),
|
|
39
|
-
createdOn: core.serialization.date().optional(),
|
|
40
|
-
lastUpdated: core.serialization.date().optional(),
|
|
41
37
|
hostedUrl: core.serialization.string().optional(),
|
|
38
|
+
originalFileName: core.serialization.string().optional(),
|
|
39
|
+
displayName: core.serialization.string().optional(),
|
|
40
|
+
lastUpdated: core.serialization.date().optional(),
|
|
41
|
+
createdOn: core.serialization.date().optional(),
|
|
42
42
|
variants: core.serialization.list(AssetVariant_1.AssetVariant).optional(),
|
|
43
|
+
altText: core.serialization.string().optional(),
|
|
43
44
|
});
|
|
@@ -41,5 +41,6 @@ exports.Form = core.serialization.object({
|
|
|
41
41
|
siteDomainId: core.serialization.string().optional(),
|
|
42
42
|
pageId: core.serialization.string().optional(),
|
|
43
43
|
pageName: core.serialization.string().optional(),
|
|
44
|
+
formElementId: core.serialization.string().optional(),
|
|
44
45
|
workspaceId: core.serialization.string().optional(),
|
|
45
46
|
});
|
|
@@ -9,7 +9,7 @@ import { Pagination } from "./Pagination";
|
|
|
9
9
|
export declare const FormSubmissionList: core.serialization.ObjectSchema<serializers.FormSubmissionList.Raw, Webflow.FormSubmissionList>;
|
|
10
10
|
export declare namespace FormSubmissionList {
|
|
11
11
|
interface Raw {
|
|
12
|
-
|
|
12
|
+
formSubmissions?: FormSubmission.Raw[] | null;
|
|
13
13
|
pagination?: Pagination.Raw | null;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -31,6 +31,6 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const FormSubmission_1 = require("./FormSubmission");
|
|
32
32
|
const Pagination_1 = require("./Pagination");
|
|
33
33
|
exports.FormSubmissionList = core.serialization.object({
|
|
34
|
-
|
|
34
|
+
formSubmissions: core.serialization.list(FormSubmission_1.FormSubmission).optional(),
|
|
35
35
|
pagination: Pagination_1.Pagination.optional(),
|
|
36
36
|
});
|
|
@@ -6,5 +6,5 @@ import * as Webflow from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const OauthScope: core.serialization.Schema<serializers.OauthScope.Raw, Webflow.OauthScope>;
|
|
8
8
|
export declare namespace OauthScope {
|
|
9
|
-
type Raw = "authorized_user:read" | "assets:read" | "assets:write" | "cms:read" | "cms:write" | "custom_code:read" | "custom_code:write" | "ecommerce:read" | "ecommerce:write" | "forms:read" | "forms:write" | "pages:read" | "pages:write" | "sites:read" | "sites:write" | "users:read" | "site_activity:read" | "users:write" | "workspace:read" | "workspace:write";
|
|
9
|
+
type Raw = "authorized_user:read" | "assets:read" | "assets:write" | "cms:read" | "cms:write" | "custom_code:read" | "custom_code:write" | "ecommerce:read" | "ecommerce:write" | "forms:read" | "forms:write" | "pages:read" | "pages:write" | "sites:read" | "sites:write" | "users:read" | "site_activity:read" | "users:write" | "workspace:read" | "workspace:write" | "site_config:read" | "site_config:write";
|
|
10
10
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Webflow from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const TooManyRequestsErrorBody: core.serialization.ObjectSchema<serializers.TooManyRequestsErrorBody.Raw, Webflow.TooManyRequestsErrorBody>;
|
|
8
|
+
export declare namespace TooManyRequestsErrorBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
message?: string | null;
|
|
11
|
+
code?: string | null;
|
|
12
|
+
externalReference?: string | null;
|
|
13
|
+
details?: unknown[] | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.TooManyRequestsErrorBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.TooManyRequestsErrorBody = core.serialization.object({
|
|
32
|
+
message: core.serialization.string().optional(),
|
|
33
|
+
code: core.serialization.string().optional(),
|
|
34
|
+
externalReference: core.serialization.string().optional(),
|
|
35
|
+
details: core.serialization.list(core.serialization.unknown()).optional(),
|
|
36
|
+
});
|
|
@@ -5,16 +5,17 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Webflow from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { TriggerType } from "./TriggerType";
|
|
8
|
+
import { WebhookFilter } from "./WebhookFilter";
|
|
8
9
|
export declare const Webhook: core.serialization.ObjectSchema<serializers.Webhook.Raw, Webflow.Webhook>;
|
|
9
10
|
export declare namespace Webhook {
|
|
10
11
|
interface Raw {
|
|
11
12
|
id?: string | null;
|
|
13
|
+
triggerType?: TriggerType.Raw | null;
|
|
14
|
+
url?: string | null;
|
|
12
15
|
workspaceId?: string | null;
|
|
13
16
|
siteId?: string | null;
|
|
14
|
-
|
|
15
|
-
filter?: Record<string, unknown> | null;
|
|
17
|
+
filter?: WebhookFilter.Raw | null;
|
|
16
18
|
lastTriggered?: string | null;
|
|
17
19
|
createdOn?: string | null;
|
|
18
|
-
url?: string | null;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
@@ -29,13 +29,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Webhook = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const TriggerType_1 = require("./TriggerType");
|
|
32
|
+
const WebhookFilter_1 = require("./WebhookFilter");
|
|
32
33
|
exports.Webhook = core.serialization.object({
|
|
33
34
|
id: core.serialization.string().optional(),
|
|
35
|
+
triggerType: TriggerType_1.TriggerType.optional(),
|
|
36
|
+
url: core.serialization.string().optional(),
|
|
34
37
|
workspaceId: core.serialization.string().optional(),
|
|
35
38
|
siteId: core.serialization.string().optional(),
|
|
36
|
-
|
|
37
|
-
filter: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
39
|
+
filter: WebhookFilter_1.WebhookFilter.optional(),
|
|
38
40
|
lastTriggered: core.serialization.date().optional(),
|
|
39
41
|
createdOn: core.serialization.date().optional(),
|
|
40
|
-
url: core.serialization.string().optional(),
|
|
41
42
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Webflow from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const WebhookFilter: core.serialization.ObjectSchema<serializers.WebhookFilter.Raw, Webflow.WebhookFilter>;
|
|
8
|
+
export declare namespace WebhookFilter {
|
|
9
|
+
interface Raw {
|
|
10
|
+
name?: string | null;
|
|
11
|
+
}
|
|
12
|
+
}
|