@wix/auto_sdk_editor-branches_branches 1.0.32 → 1.0.34
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/build/cjs/index.d.ts +24 -8
- package/build/cjs/index.js +130 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +145 -6
- package/build/cjs/index.typings.js +112 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +109 -2
- package/build/cjs/meta.js +86 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +24 -8
- package/build/es/index.mjs +128 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +145 -6
- package/build/es/index.typings.mjs +110 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +109 -2
- package/build/es/meta.mjs +84 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +24 -8
- package/build/internal/cjs/index.js +130 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +145 -6
- package/build/internal/cjs/index.typings.js +112 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +109 -2
- package/build/internal/cjs/meta.js +86 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +24 -8
- package/build/internal/es/index.mjs +128 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +145 -6
- package/build/internal/es/index.typings.mjs +110 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +109 -2
- package/build/internal/es/meta.mjs +84 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { Branch, CreateBranchApplicationErrors, UpdateBranch, UpdateBranchApplicationErrors, DeleteBranchApplicationErrors, SetDefaultBranchResponse, GetDefaultBranchResponse, BranchCreatedEnvelope, BranchDeletedEnvelope, BranchUpdatedEnvelope, BranchesQueryBuilder, BranchQuery, typedQueryBranches } from './index.typings.js';
|
|
3
|
-
export { ActionEvent, Asset, BaseEventMetadata, BranchQuerySpec, BranchSourceOneOf, BranchesQueryResult, CommonQueryWithEntityContext, CreateBranchRequest, CreateBranchResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteBranchRequest, DeleteBranchResponse, DeleteContext, DeleteStatus, DeleteStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, EditorType, EditorTypeOptions, EditorTypeOptionsWithLiterals, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetBranchRequest, GetBranchResponse, GetDefaultBranchRequest, HtmlSitePublished, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, Page, PicassoAssigned, PicassoUnassigned, QueryBranchesRequest, QueryBranchesResponse, RestoreInfo, ServiceProvisioned, ServiceRemoved, SetDefaultBranchRequest, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SourceBranch, SourceTemplate, SourceType, SourceTypeWithLiterals, State, StateWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, Type, TypeWithLiterals, UpdateBranchRequest, UpdateBranchResponse, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.js';
|
|
2
|
+
import { Branch, CreateBranchApplicationErrors, UpdateBranch, UpdateBranchApplicationErrors, DeleteBranchApplicationErrors, SetDefaultBranchResponse, GetDefaultBranchResponse, BulkUpdateBranchTagsOptions, BulkUpdateBranchTagsResponse, BulkUpdateBranchTagsApplicationErrors, BulkUpdateBranchTagsByFilterOptions, BulkUpdateBranchTagsByFilterResponse, BulkUpdateBranchTagsByFilterApplicationErrors, BranchCreatedEnvelope, BranchDeletedEnvelope, BranchUpdatedEnvelope, BranchesQueryBuilder, BranchQuery, typedQueryBranches } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, ApplicationError, Asset, BaseEventMetadata, BranchQuerySpec, BranchSourceOneOf, BranchesQueryResult, BulkActionMetadata, BulkUpdateBranchTagsByFilterRequest, BulkUpdateBranchTagsRequest, BulkUpdateBranchTagsResult, CommonQueryWithEntityContext, CreateBranchRequest, CreateBranchResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteBranchRequest, DeleteBranchResponse, DeleteContext, DeleteStatus, DeleteStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, EditorType, EditorTypeOptions, EditorTypeOptionsWithLiterals, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetBranchRequest, GetBranchResponse, GetDefaultBranchRequest, HtmlSitePublished, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, Page, PicassoAssigned, PicassoUnassigned, PublicTags, QueryBranchesRequest, QueryBranchesResponse, RestoreInfo, ServiceProvisioned, ServiceRemoved, SetDefaultBranchRequest, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SourceBranch, SourceTemplate, SourceType, SourceTypeWithLiterals, State, StateWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, TagList, TagsModified, Type, TypeWithLiterals, UpdateBranchRequest, UpdateBranchResponse, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createBranch$1(httpClient: HttpClient): CreateBranchSignature;
|
|
6
6
|
interface CreateBranchSignature {
|
|
@@ -17,7 +17,7 @@ interface CreateBranchSignature {
|
|
|
17
17
|
* @param - Branch to be created.
|
|
18
18
|
* @returns Created branch.
|
|
19
19
|
*/
|
|
20
|
-
(branch: Branch): Promise<NonNullablePaths<Branch, `sourceBranchProperties.branchId` | `sourceTemplateProperties.templateId` | `type` | `sourceType` | `editorType.editorTypeOptions`,
|
|
20
|
+
(branch: Branch): Promise<NonNullablePaths<Branch, `sourceBranchProperties.branchId` | `sourceTemplateProperties.templateId` | `type` | `sourceType` | `editorType.editorTypeOptions` | `tags.tags.tagIds`, 4> & {
|
|
21
21
|
__applicationErrorsType?: CreateBranchApplicationErrors;
|
|
22
22
|
}>;
|
|
23
23
|
}
|
|
@@ -28,7 +28,7 @@ interface GetBranchSignature {
|
|
|
28
28
|
* @param - ID of branch to retrieve.
|
|
29
29
|
* @returns Requested branch.
|
|
30
30
|
*/
|
|
31
|
-
(branchId: string): Promise<NonNullablePaths<Branch, `sourceBranchProperties.branchId` | `sourceTemplateProperties.templateId` | `type` | `sourceType` | `editorType.editorTypeOptions`,
|
|
31
|
+
(branchId: string): Promise<NonNullablePaths<Branch, `sourceBranchProperties.branchId` | `sourceTemplateProperties.templateId` | `type` | `sourceType` | `editorType.editorTypeOptions` | `tags.tags.tagIds`, 4>>;
|
|
32
32
|
}
|
|
33
33
|
declare function updateBranch$1(httpClient: HttpClient): UpdateBranchSignature;
|
|
34
34
|
interface UpdateBranchSignature {
|
|
@@ -39,7 +39,7 @@ interface UpdateBranchSignature {
|
|
|
39
39
|
* @param - Branch ID.
|
|
40
40
|
* @returns Updated branch.
|
|
41
41
|
*/
|
|
42
|
-
(_id: string, branch: NonNullablePaths<UpdateBranch, `revision`, 2>): Promise<NonNullablePaths<Branch, `sourceBranchProperties.branchId` | `sourceTemplateProperties.templateId` | `type` | `sourceType` | `editorType.editorTypeOptions`,
|
|
42
|
+
(_id: string, branch: NonNullablePaths<UpdateBranch, `revision`, 2>): Promise<NonNullablePaths<Branch, `sourceBranchProperties.branchId` | `sourceTemplateProperties.templateId` | `type` | `sourceType` | `editorType.editorTypeOptions` | `tags.tags.tagIds`, 4> & {
|
|
43
43
|
__applicationErrorsType?: UpdateBranchApplicationErrors;
|
|
44
44
|
}>;
|
|
45
45
|
}
|
|
@@ -59,14 +59,28 @@ interface SetDefaultBranchSignature {
|
|
|
59
59
|
* Sets the specified branch as the default.
|
|
60
60
|
* @param - Branch ID.
|
|
61
61
|
*/
|
|
62
|
-
(branchId: string): Promise<NonNullablePaths<SetDefaultBranchResponse, `branch.sourceBranchProperties.branchId` | `branch.sourceTemplateProperties.templateId` | `branch.type` | `branch.sourceType` | `branch.editorType.editorTypeOptions`,
|
|
62
|
+
(branchId: string): Promise<NonNullablePaths<SetDefaultBranchResponse, `branch.sourceBranchProperties.branchId` | `branch.sourceTemplateProperties.templateId` | `branch.type` | `branch.sourceType` | `branch.editorType.editorTypeOptions` | `branch.tags.tags.tagIds`, 5>>;
|
|
63
63
|
}
|
|
64
64
|
declare function getDefaultBranch$1(httpClient: HttpClient): GetDefaultBranchSignature;
|
|
65
65
|
interface GetDefaultBranchSignature {
|
|
66
66
|
/**
|
|
67
67
|
* Retrieves the default branch.
|
|
68
68
|
*/
|
|
69
|
-
(): Promise<NonNullablePaths<GetDefaultBranchResponse, `branch.sourceBranchProperties.branchId` | `branch.sourceTemplateProperties.templateId` | `branch.type` | `branch.sourceType` | `branch.editorType.editorTypeOptions`,
|
|
69
|
+
(): Promise<NonNullablePaths<GetDefaultBranchResponse, `branch.sourceBranchProperties.branchId` | `branch.sourceTemplateProperties.templateId` | `branch.type` | `branch.sourceType` | `branch.editorType.editorTypeOptions` | `branch.tags.tags.tagIds`, 5>>;
|
|
70
|
+
}
|
|
71
|
+
declare function bulkUpdateBranchTags$1(httpClient: HttpClient): BulkUpdateBranchTagsSignature;
|
|
72
|
+
interface BulkUpdateBranchTagsSignature {
|
|
73
|
+
/** @param - List of branch IDs. */
|
|
74
|
+
(branchIds: string[], options?: BulkUpdateBranchTagsOptions): Promise<NonNullablePaths<BulkUpdateBranchTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
|
|
75
|
+
__applicationErrorsType?: BulkUpdateBranchTagsApplicationErrors;
|
|
76
|
+
}>;
|
|
77
|
+
}
|
|
78
|
+
declare function bulkUpdateBranchTagsByFilter$1(httpClient: HttpClient): BulkUpdateBranchTagsByFilterSignature;
|
|
79
|
+
interface BulkUpdateBranchTagsByFilterSignature {
|
|
80
|
+
/** @param - WQL filter to select branches. */
|
|
81
|
+
(filter: Record<string, any>, options?: BulkUpdateBranchTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateBranchTagsByFilterResponse, `jobId`, 2> & {
|
|
82
|
+
__applicationErrorsType?: BulkUpdateBranchTagsByFilterApplicationErrors;
|
|
83
|
+
}>;
|
|
70
84
|
}
|
|
71
85
|
declare const onBranchCreated$1: EventDefinition<BranchCreatedEnvelope, "wix.editor.branches.v1.branch_created">;
|
|
72
86
|
declare const onBranchDeleted$1: EventDefinition<BranchDeletedEnvelope, "wix.editor.branches.v1.branch_deleted">;
|
|
@@ -82,6 +96,8 @@ declare const updateBranch: MaybeContext<BuildRESTFunction<typeof updateBranch$1
|
|
|
82
96
|
declare const deleteBranch: MaybeContext<BuildRESTFunction<typeof deleteBranch$1> & typeof deleteBranch$1>;
|
|
83
97
|
declare const setDefaultBranch: MaybeContext<BuildRESTFunction<typeof setDefaultBranch$1> & typeof setDefaultBranch$1>;
|
|
84
98
|
declare const getDefaultBranch: MaybeContext<BuildRESTFunction<typeof getDefaultBranch$1> & typeof getDefaultBranch$1>;
|
|
99
|
+
declare const bulkUpdateBranchTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateBranchTags$1> & typeof bulkUpdateBranchTags$1>;
|
|
100
|
+
declare const bulkUpdateBranchTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateBranchTagsByFilter$1> & typeof bulkUpdateBranchTagsByFilter$1>;
|
|
85
101
|
declare const queryBranches: MaybeContext<BuildRESTFunction<typeof customQueryBranches> & typeof customQueryBranches>;
|
|
86
102
|
/**
|
|
87
103
|
* Triggered when a branch is created.
|
|
@@ -96,4 +112,4 @@ declare const onBranchDeleted: BuildEventDefinition<typeof onBranchDeleted$1> &
|
|
|
96
112
|
*/
|
|
97
113
|
declare const onBranchUpdated: BuildEventDefinition<typeof onBranchUpdated$1> & typeof onBranchUpdated$1;
|
|
98
114
|
|
|
99
|
-
export { Branch, BranchCreatedEnvelope, BranchDeletedEnvelope, BranchQuery, BranchUpdatedEnvelope, BranchesQueryBuilder, CreateBranchApplicationErrors, DeleteBranchApplicationErrors, GetDefaultBranchResponse, SetDefaultBranchResponse, UpdateBranch, UpdateBranchApplicationErrors, createBranch, deleteBranch, getBranch, getDefaultBranch, onBranchCreated, onBranchDeleted, onBranchUpdated, queryBranches, setDefaultBranch, updateBranch };
|
|
115
|
+
export { Branch, BranchCreatedEnvelope, BranchDeletedEnvelope, BranchQuery, BranchUpdatedEnvelope, BranchesQueryBuilder, BulkUpdateBranchTagsApplicationErrors, BulkUpdateBranchTagsByFilterApplicationErrors, BulkUpdateBranchTagsByFilterOptions, BulkUpdateBranchTagsByFilterResponse, BulkUpdateBranchTagsOptions, BulkUpdateBranchTagsResponse, CreateBranchApplicationErrors, DeleteBranchApplicationErrors, GetDefaultBranchResponse, SetDefaultBranchResponse, UpdateBranch, UpdateBranchApplicationErrors, bulkUpdateBranchTags, bulkUpdateBranchTagsByFilter, createBranch, deleteBranch, getBranch, getDefaultBranch, onBranchCreated, onBranchDeleted, onBranchUpdated, queryBranches, setDefaultBranch, updateBranch };
|
package/build/cjs/index.js
CHANGED
|
@@ -29,6 +29,8 @@ __export(index_exports, {
|
|
|
29
29
|
State: () => State,
|
|
30
30
|
Type: () => Type,
|
|
31
31
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
32
|
+
bulkUpdateBranchTags: () => bulkUpdateBranchTags4,
|
|
33
|
+
bulkUpdateBranchTagsByFilter: () => bulkUpdateBranchTagsByFilter4,
|
|
32
34
|
createBranch: () => createBranch4,
|
|
33
35
|
deleteBranch: () => deleteBranch4,
|
|
34
36
|
getBranch: () => getBranch4,
|
|
@@ -88,6 +90,10 @@ function resolveWixEditorBranchesV1BranchesServiceUrl(opts) {
|
|
|
88
90
|
{
|
|
89
91
|
srcPath: "/editor/branches/v1/branches",
|
|
90
92
|
destPath: "/v1/branches"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
srcPath: "/editor/branches/v1/bulk/branches",
|
|
96
|
+
destPath: "/v1/bulk/branches"
|
|
91
97
|
}
|
|
92
98
|
],
|
|
93
99
|
"*.dev.wix-code.com": [
|
|
@@ -346,6 +352,48 @@ function getDefaultBranch(payload) {
|
|
|
346
352
|
}
|
|
347
353
|
return __getDefaultBranch;
|
|
348
354
|
}
|
|
355
|
+
function bulkUpdateBranchTags(payload) {
|
|
356
|
+
function __bulkUpdateBranchTags({ host }) {
|
|
357
|
+
const metadata = {
|
|
358
|
+
entityFqdn: "wix.editor.branches.v1.branch",
|
|
359
|
+
method: "POST",
|
|
360
|
+
methodFqn: "wix.editor.branches.v1.BranchesService.BulkUpdateBranchTags",
|
|
361
|
+
packageName: PACKAGE_NAME,
|
|
362
|
+
migrationOptions: {
|
|
363
|
+
optInTransformResponse: true
|
|
364
|
+
},
|
|
365
|
+
url: resolveWixEditorBranchesV1BranchesServiceUrl({
|
|
366
|
+
protoPath: "/v1/bulk/branches/update-tags",
|
|
367
|
+
data: payload,
|
|
368
|
+
host
|
|
369
|
+
}),
|
|
370
|
+
data: payload
|
|
371
|
+
};
|
|
372
|
+
return metadata;
|
|
373
|
+
}
|
|
374
|
+
return __bulkUpdateBranchTags;
|
|
375
|
+
}
|
|
376
|
+
function bulkUpdateBranchTagsByFilter(payload) {
|
|
377
|
+
function __bulkUpdateBranchTagsByFilter({ host }) {
|
|
378
|
+
const metadata = {
|
|
379
|
+
entityFqdn: "wix.editor.branches.v1.branch",
|
|
380
|
+
method: "POST",
|
|
381
|
+
methodFqn: "wix.editor.branches.v1.BranchesService.BulkUpdateBranchTagsByFilter",
|
|
382
|
+
packageName: PACKAGE_NAME,
|
|
383
|
+
migrationOptions: {
|
|
384
|
+
optInTransformResponse: true
|
|
385
|
+
},
|
|
386
|
+
url: resolveWixEditorBranchesV1BranchesServiceUrl({
|
|
387
|
+
protoPath: "/v1/bulk/branches/update-tags-by-filter",
|
|
388
|
+
data: payload,
|
|
389
|
+
host
|
|
390
|
+
}),
|
|
391
|
+
data: payload
|
|
392
|
+
};
|
|
393
|
+
return metadata;
|
|
394
|
+
}
|
|
395
|
+
return __bulkUpdateBranchTagsByFilter;
|
|
396
|
+
}
|
|
349
397
|
|
|
350
398
|
// src/editor-branches-v1-branch-branches.universal.ts
|
|
351
399
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -648,6 +696,68 @@ async function getDefaultBranch2() {
|
|
|
648
696
|
throw transformedError;
|
|
649
697
|
}
|
|
650
698
|
}
|
|
699
|
+
async function bulkUpdateBranchTags2(branchIds, options) {
|
|
700
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
701
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
702
|
+
branchIds,
|
|
703
|
+
assignTags: options?.assignTags,
|
|
704
|
+
unassignTags: options?.unassignTags
|
|
705
|
+
});
|
|
706
|
+
const reqOpts = bulkUpdateBranchTags(payload);
|
|
707
|
+
sideEffects?.onSiteCall?.();
|
|
708
|
+
try {
|
|
709
|
+
const result = await httpClient.request(reqOpts);
|
|
710
|
+
sideEffects?.onSuccess?.(result);
|
|
711
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
712
|
+
} catch (err) {
|
|
713
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
714
|
+
err,
|
|
715
|
+
{
|
|
716
|
+
spreadPathsToArguments: {},
|
|
717
|
+
explicitPathsToArguments: {
|
|
718
|
+
branchIds: "$[0]",
|
|
719
|
+
assignTags: "$[1].assignTags",
|
|
720
|
+
unassignTags: "$[1].unassignTags"
|
|
721
|
+
},
|
|
722
|
+
singleArgumentUnchanged: false
|
|
723
|
+
},
|
|
724
|
+
["branchIds", "options"]
|
|
725
|
+
);
|
|
726
|
+
sideEffects?.onError?.(err);
|
|
727
|
+
throw transformedError;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
async function bulkUpdateBranchTagsByFilter2(filter, options) {
|
|
731
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
732
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
733
|
+
filter,
|
|
734
|
+
assignTags: options?.assignTags,
|
|
735
|
+
unassignTags: options?.unassignTags
|
|
736
|
+
});
|
|
737
|
+
const reqOpts = bulkUpdateBranchTagsByFilter(payload);
|
|
738
|
+
sideEffects?.onSiteCall?.();
|
|
739
|
+
try {
|
|
740
|
+
const result = await httpClient.request(reqOpts);
|
|
741
|
+
sideEffects?.onSuccess?.(result);
|
|
742
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
743
|
+
} catch (err) {
|
|
744
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
745
|
+
err,
|
|
746
|
+
{
|
|
747
|
+
spreadPathsToArguments: {},
|
|
748
|
+
explicitPathsToArguments: {
|
|
749
|
+
filter: "$[0]",
|
|
750
|
+
assignTags: "$[1].assignTags",
|
|
751
|
+
unassignTags: "$[1].unassignTags"
|
|
752
|
+
},
|
|
753
|
+
singleArgumentUnchanged: false
|
|
754
|
+
},
|
|
755
|
+
["filter", "options"]
|
|
756
|
+
);
|
|
757
|
+
sideEffects?.onError?.(err);
|
|
758
|
+
throw transformedError;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
651
761
|
|
|
652
762
|
// src/editor-branches-v1-branch-branches.public.ts
|
|
653
763
|
function createBranch3(httpClient) {
|
|
@@ -705,6 +815,22 @@ function getDefaultBranch3(httpClient) {
|
|
|
705
815
|
{ httpClient }
|
|
706
816
|
);
|
|
707
817
|
}
|
|
818
|
+
function bulkUpdateBranchTags3(httpClient) {
|
|
819
|
+
return (branchIds, options) => bulkUpdateBranchTags2(
|
|
820
|
+
branchIds,
|
|
821
|
+
options,
|
|
822
|
+
// @ts-ignore
|
|
823
|
+
{ httpClient }
|
|
824
|
+
);
|
|
825
|
+
}
|
|
826
|
+
function bulkUpdateBranchTagsByFilter3(httpClient) {
|
|
827
|
+
return (filter, options) => bulkUpdateBranchTagsByFilter2(
|
|
828
|
+
filter,
|
|
829
|
+
options,
|
|
830
|
+
// @ts-ignore
|
|
831
|
+
{ httpClient }
|
|
832
|
+
);
|
|
833
|
+
}
|
|
708
834
|
var onBranchCreated = (0, import_sdk_types.EventDefinition)(
|
|
709
835
|
"wix.editor.branches.v1.branch_created",
|
|
710
836
|
true,
|
|
@@ -777,6 +903,8 @@ var updateBranch4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(u
|
|
|
777
903
|
var deleteBranch4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteBranch3);
|
|
778
904
|
var setDefaultBranch4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setDefaultBranch3);
|
|
779
905
|
var getDefaultBranch4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDefaultBranch3);
|
|
906
|
+
var bulkUpdateBranchTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateBranchTags3);
|
|
907
|
+
var bulkUpdateBranchTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateBranchTagsByFilter3);
|
|
780
908
|
var queryBranches4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryBranches);
|
|
781
909
|
var onBranchCreated2 = (0, import_event_definition_modules.createEventModule)(onBranchCreated);
|
|
782
910
|
var onBranchDeleted2 = (0, import_event_definition_modules.createEventModule)(onBranchDeleted);
|
|
@@ -792,6 +920,8 @@ var onBranchUpdated2 = (0, import_event_definition_modules.createEventModule)(on
|
|
|
792
920
|
State,
|
|
793
921
|
Type,
|
|
794
922
|
WebhookIdentityType,
|
|
923
|
+
bulkUpdateBranchTags,
|
|
924
|
+
bulkUpdateBranchTagsByFilter,
|
|
795
925
|
createBranch,
|
|
796
926
|
deleteBranch,
|
|
797
927
|
getBranch,
|