webflow-api 2.2.0 → 2.2.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/api/resources/accessGroups/client/Client.js +1 -1
- package/api/resources/assets/client/Client.d.ts +1 -1
- package/api/resources/assets/client/Client.js +9 -9
- package/api/resources/collections/client/Client.js +5 -5
- package/api/resources/collections/resources/fields/client/Client.js +2 -2
- package/api/resources/collections/resources/items/client/Client.js +10 -10
- package/api/resources/ecommerce/client/Client.js +1 -1
- package/api/resources/forms/client/Client.js +5 -5
- package/api/resources/inventory/client/Client.js +2 -2
- package/api/resources/orders/client/Client.js +6 -6
- package/api/resources/pages/client/Client.js +5 -5
- package/api/resources/pages/resources/scripts/client/Client.js +3 -3
- package/api/resources/products/client/Client.js +6 -6
- package/api/resources/scripts/client/Client.js +3 -3
- package/api/resources/sites/client/Client.js +4 -4
- package/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
- package/api/resources/sites/resources/scripts/client/Client.js +4 -4
- package/api/resources/token/client/Client.js +2 -2
- package/api/resources/users/client/Client.js +5 -5
- package/api/resources/webhooks/client/Client.js +4 -4
- package/api/types/Assets.d.ts +10 -0
- package/api/types/Assets.js +5 -0
- package/api/types/OauthScope.d.ts +46 -22
- package/api/types/OauthScope.js +12 -6
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/api/resources/accessGroups/client/Client.js +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +1 -1
- package/dist/api/resources/assets/client/Client.js +9 -9
- package/dist/api/resources/collections/client/Client.js +5 -5
- package/dist/api/resources/collections/resources/fields/client/Client.js +2 -2
- package/dist/api/resources/collections/resources/items/client/Client.js +10 -10
- package/dist/api/resources/ecommerce/client/Client.js +1 -1
- package/dist/api/resources/forms/client/Client.js +5 -5
- package/dist/api/resources/inventory/client/Client.js +2 -2
- package/dist/api/resources/orders/client/Client.js +6 -6
- package/dist/api/resources/pages/client/Client.js +5 -5
- package/dist/api/resources/pages/resources/scripts/client/Client.js +3 -3
- package/dist/api/resources/products/client/Client.js +6 -6
- package/dist/api/resources/scripts/client/Client.js +3 -3
- package/dist/api/resources/sites/client/Client.js +4 -4
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
- package/dist/api/resources/sites/resources/scripts/client/Client.js +4 -4
- package/dist/api/resources/token/client/Client.js +2 -2
- package/dist/api/resources/users/client/Client.js +5 -5
- package/dist/api/resources/webhooks/client/Client.js +4 -4
- package/dist/api/types/Assets.d.ts +10 -0
- package/dist/api/types/Assets.js +5 -0
- package/dist/api/types/OauthScope.d.ts +46 -22
- package/dist/api/types/OauthScope.js +12 -6
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/assets/client/index.d.ts +0 -1
- package/dist/serialization/resources/assets/client/index.js +0 -14
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/dist/serialization/types/Assets.d.ts +12 -0
- package/dist/serialization/{resources/assets/client/list.js → types/Assets.js} +7 -3
- package/dist/serialization/types/OauthScope.d.ts +1 -1
- package/dist/serialization/types/OauthScope.js +12 -6
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/package.json +1 -1
- package/serialization/resources/assets/client/index.d.ts +0 -1
- package/serialization/resources/assets/client/index.js +0 -14
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/serialization/types/Assets.d.ts +12 -0
- package/serialization/{resources/assets/client/list.js → types/Assets.js} +7 -3
- package/serialization/types/OauthScope.d.ts +1 -1
- package/serialization/types/OauthScope.js +12 -6
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/dist/serialization/resources/assets/client/list.d.ts +0 -10
- package/serialization/resources/assets/client/list.d.ts +0 -10
|
@@ -63,6 +63,7 @@ __exportStar(require("./CustomCodeBlock"), exports);
|
|
|
63
63
|
__exportStar(require("./ListCustomCodeBlocks"), exports);
|
|
64
64
|
__exportStar(require("./AssetVariant"), exports);
|
|
65
65
|
__exportStar(require("./Asset"), exports);
|
|
66
|
+
__exportStar(require("./Assets"), exports);
|
|
66
67
|
__exportStar(require("./AssetUploadUploadDetails"), exports);
|
|
67
68
|
__exportStar(require("./AssetUpload"), exports);
|
|
68
69
|
__exportStar(require("./AssetFolder"), exports);
|
package/package.json
CHANGED
|
@@ -10,22 +10,8 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
15
|
};
|
|
28
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.list = void 0;
|
|
30
|
-
exports.list = __importStar(require("./list"));
|
|
31
17
|
__exportStar(require("./requests"), exports);
|
|
@@ -11,13 +11,13 @@ export * as orders from "./orders";
|
|
|
11
11
|
export * from "./orders/types";
|
|
12
12
|
export * as inventory from "./inventory";
|
|
13
13
|
export * from "./inventory/types";
|
|
14
|
-
export * as assets from "./assets";
|
|
15
14
|
export * as sites from "./sites";
|
|
16
15
|
export * from "./sites/client/requests";
|
|
17
16
|
export * from "./collections/client/requests";
|
|
18
17
|
export * from "./pages/client/requests";
|
|
19
18
|
export * as scripts from "./scripts";
|
|
20
19
|
export * from "./scripts/client/requests";
|
|
20
|
+
export * as assets from "./assets";
|
|
21
21
|
export * from "./assets/client/requests";
|
|
22
22
|
export * as webhooks from "./webhooks";
|
|
23
23
|
export * from "./webhooks/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.webhooks = exports.
|
|
29
|
+
exports.forms = exports.webhooks = 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);
|
|
@@ -40,13 +40,13 @@ exports.orders = __importStar(require("./orders"));
|
|
|
40
40
|
__exportStar(require("./orders/types"), exports);
|
|
41
41
|
exports.inventory = __importStar(require("./inventory"));
|
|
42
42
|
__exportStar(require("./inventory/types"), exports);
|
|
43
|
-
exports.assets = __importStar(require("./assets"));
|
|
44
43
|
exports.sites = __importStar(require("./sites"));
|
|
45
44
|
__exportStar(require("./sites/client/requests"), exports);
|
|
46
45
|
__exportStar(require("./collections/client/requests"), exports);
|
|
47
46
|
__exportStar(require("./pages/client/requests"), exports);
|
|
48
47
|
exports.scripts = __importStar(require("./scripts"));
|
|
49
48
|
__exportStar(require("./scripts/client/requests"), exports);
|
|
49
|
+
exports.assets = __importStar(require("./assets"));
|
|
50
50
|
__exportStar(require("./assets/client/requests"), exports);
|
|
51
51
|
exports.webhooks = __importStar(require("./webhooks"));
|
|
52
52
|
__exportStar(require("./webhooks/client/requests"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Webflow from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const Assets: core.serialization.ObjectSchema<serializers.Assets.Raw, Webflow.Assets>;
|
|
8
|
+
export declare namespace Assets {
|
|
9
|
+
interface Raw {
|
|
10
|
+
assets?: serializers.Asset.Raw[] | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -35,6 +35,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.
|
|
39
|
-
const core = __importStar(require("
|
|
40
|
-
exports.
|
|
38
|
+
exports.Assets = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.Assets = core.serialization.object({
|
|
41
|
+
assets: core.serialization
|
|
42
|
+
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).Asset; })))
|
|
43
|
+
.optional(),
|
|
44
|
+
});
|
|
@@ -6,5 +6,5 @@ import * as Webflow from "../../api";
|
|
|
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" | "read:
|
|
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";
|
|
10
10
|
}
|
|
@@ -30,15 +30,21 @@ exports.OauthScope = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.OauthScope = core.serialization.enum_([
|
|
32
32
|
"authorized_user:read",
|
|
33
|
-
"read
|
|
34
|
-
"
|
|
35
|
-
"
|
|
33
|
+
"assets:read",
|
|
34
|
+
"assets:write",
|
|
35
|
+
"cms:read",
|
|
36
|
+
"cms:write",
|
|
36
37
|
"custom_code:read",
|
|
37
38
|
"custom_code:write",
|
|
38
|
-
"custom_code:delete",
|
|
39
|
-
"users:read",
|
|
40
|
-
"users:write",
|
|
41
39
|
"ecommerce:read",
|
|
42
40
|
"ecommerce:write",
|
|
41
|
+
"forms:read",
|
|
42
|
+
"forms:write",
|
|
43
|
+
"pages:read",
|
|
44
|
+
"pages:write",
|
|
45
|
+
"sites:read",
|
|
46
|
+
"sites:write",
|
|
47
|
+
"users:read",
|
|
43
48
|
"site_activity:read",
|
|
49
|
+
"users:write",
|
|
44
50
|
]);
|
|
@@ -47,6 +47,7 @@ export * from "./CustomCodeBlock";
|
|
|
47
47
|
export * from "./ListCustomCodeBlocks";
|
|
48
48
|
export * from "./AssetVariant";
|
|
49
49
|
export * from "./Asset";
|
|
50
|
+
export * from "./Assets";
|
|
50
51
|
export * from "./AssetUploadUploadDetails";
|
|
51
52
|
export * from "./AssetUpload";
|
|
52
53
|
export * from "./AssetFolder";
|
|
@@ -63,6 +63,7 @@ __exportStar(require("./CustomCodeBlock"), exports);
|
|
|
63
63
|
__exportStar(require("./ListCustomCodeBlocks"), exports);
|
|
64
64
|
__exportStar(require("./AssetVariant"), exports);
|
|
65
65
|
__exportStar(require("./Asset"), exports);
|
|
66
|
+
__exportStar(require("./Assets"), exports);
|
|
66
67
|
__exportStar(require("./AssetUploadUploadDetails"), exports);
|
|
67
68
|
__exportStar(require("./AssetUpload"), exports);
|
|
68
69
|
__exportStar(require("./AssetFolder"), exports);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../..";
|
|
5
|
-
import * as Webflow from "../../../../api";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const Response: core.serialization.Schema<serializers.assets.list.Response.Raw, Webflow.Asset[]>;
|
|
8
|
-
export declare namespace Response {
|
|
9
|
-
type Raw = serializers.Asset.Raw[];
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../..";
|
|
5
|
-
import * as Webflow from "../../../../api";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const Response: core.serialization.Schema<serializers.assets.list.Response.Raw, Webflow.Asset[]>;
|
|
8
|
-
export declare namespace Response {
|
|
9
|
-
type Raw = serializers.Asset.Raw[];
|
|
10
|
-
}
|