@wix/groups 1.0.58 → 1.0.60
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/src/social-groups-v2-group-member.public.d.ts +1 -1
- package/build/cjs/src/social-groups-v2-group-member.types.d.ts +67 -0
- package/build/cjs/src/social-groups-v2-group-member.universal.d.ts +67 -0
- package/build/cjs/src/social-groups-v2-group-member.universal.js +46 -22
- package/build/cjs/src/social-groups-v2-group-member.universal.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group-request.http.js +30 -118
- package/build/cjs/src/social-groups-v2-group-request.http.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group-request.public.d.ts +1 -1
- package/build/cjs/src/social-groups-v2-group-request.types.d.ts +67 -0
- package/build/cjs/src/social-groups-v2-group-request.universal.d.ts +67 -0
- package/build/cjs/src/social-groups-v2-group-request.universal.js +19 -9
- package/build/cjs/src/social-groups-v2-group-request.universal.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group-role.public.d.ts +1 -1
- package/build/cjs/src/social-groups-v2-group-role.types.d.ts +67 -0
- package/build/cjs/src/social-groups-v2-group-role.universal.d.ts +67 -0
- package/build/cjs/src/social-groups-v2-group-role.universal.js +21 -12
- package/build/cjs/src/social-groups-v2-group-role.universal.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group-rules.public.d.ts +1 -1
- package/build/cjs/src/social-groups-v2-group-rules.types.d.ts +67 -0
- package/build/cjs/src/social-groups-v2-group-rules.universal.d.ts +67 -0
- package/build/cjs/src/social-groups-v2-group-rules.universal.js +11 -7
- package/build/cjs/src/social-groups-v2-group-rules.universal.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group.public.d.ts +1 -1
- package/build/cjs/src/social-groups-v2-group.types.d.ts +67 -0
- package/build/cjs/src/social-groups-v2-group.universal.d.ts +67 -0
- package/build/cjs/src/social-groups-v2-group.universal.js +37 -20
- package/build/cjs/src/social-groups-v2-group.universal.js.map +1 -1
- package/build/cjs/src/social-groups-v2-join-group-request.public.d.ts +1 -1
- package/build/cjs/src/social-groups-v2-join-group-request.types.d.ts +67 -0
- package/build/cjs/src/social-groups-v2-join-group-request.universal.d.ts +67 -0
- package/build/cjs/src/social-groups-v2-join-group-request.universal.js +24 -13
- package/build/cjs/src/social-groups-v2-join-group-request.universal.js.map +1 -1
- package/build/cjs/src/social-groups-v2-membership-question.universal.js +23 -11
- package/build/cjs/src/social-groups-v2-membership-question.universal.js.map +1 -1
- package/build/es/src/social-groups-v2-group-member.public.d.ts +1 -1
- package/build/es/src/social-groups-v2-group-member.types.d.ts +67 -0
- package/build/es/src/social-groups-v2-group-member.universal.d.ts +67 -0
- package/build/es/src/social-groups-v2-group-member.universal.js +46 -22
- package/build/es/src/social-groups-v2-group-member.universal.js.map +1 -1
- package/build/es/src/social-groups-v2-group-request.http.js +30 -118
- package/build/es/src/social-groups-v2-group-request.http.js.map +1 -1
- package/build/es/src/social-groups-v2-group-request.public.d.ts +1 -1
- package/build/es/src/social-groups-v2-group-request.types.d.ts +67 -0
- package/build/es/src/social-groups-v2-group-request.universal.d.ts +67 -0
- package/build/es/src/social-groups-v2-group-request.universal.js +19 -9
- package/build/es/src/social-groups-v2-group-request.universal.js.map +1 -1
- package/build/es/src/social-groups-v2-group-role.public.d.ts +1 -1
- package/build/es/src/social-groups-v2-group-role.types.d.ts +67 -0
- package/build/es/src/social-groups-v2-group-role.universal.d.ts +67 -0
- package/build/es/src/social-groups-v2-group-role.universal.js +22 -13
- package/build/es/src/social-groups-v2-group-role.universal.js.map +1 -1
- package/build/es/src/social-groups-v2-group-rules.public.d.ts +1 -1
- package/build/es/src/social-groups-v2-group-rules.types.d.ts +67 -0
- package/build/es/src/social-groups-v2-group-rules.universal.d.ts +67 -0
- package/build/es/src/social-groups-v2-group-rules.universal.js +12 -8
- package/build/es/src/social-groups-v2-group-rules.universal.js.map +1 -1
- package/build/es/src/social-groups-v2-group.public.d.ts +1 -1
- package/build/es/src/social-groups-v2-group.types.d.ts +67 -0
- package/build/es/src/social-groups-v2-group.universal.d.ts +67 -0
- package/build/es/src/social-groups-v2-group.universal.js +37 -20
- package/build/es/src/social-groups-v2-group.universal.js.map +1 -1
- package/build/es/src/social-groups-v2-join-group-request.public.d.ts +1 -1
- package/build/es/src/social-groups-v2-join-group-request.types.d.ts +67 -0
- package/build/es/src/social-groups-v2-join-group-request.universal.d.ts +67 -0
- package/build/es/src/social-groups-v2-join-group-request.universal.js +24 -13
- package/build/es/src/social-groups-v2-join-group-request.universal.js.map +1 -1
- package/build/es/src/social-groups-v2-membership-question.universal.js +24 -12
- package/build/es/src/social-groups-v2-membership-question.universal.js.map +1 -1
- package/package.json +3 -3
|
@@ -7,7 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { serializer
|
|
10
|
+
import { serializer } from '@wix/metro-runtime/velo';
|
|
11
|
+
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
11
12
|
import * as ambassadorWixSocialGroupsV2GroupRules from './social-groups-v2-group-rules.http';
|
|
12
13
|
let __verbose = false;
|
|
13
14
|
function __log(...args) {
|
|
@@ -73,9 +74,11 @@ export function listRules(groupId) {
|
|
|
73
74
|
return fromJSON(result.data);
|
|
74
75
|
}
|
|
75
76
|
catch (err) {
|
|
76
|
-
const transformedError =
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
const transformedError = sdkTransformError(err, {
|
|
78
|
+
spreadPathsToArguments: {},
|
|
79
|
+
explicitPathsToArguments: { groupId: '$[0]' },
|
|
80
|
+
singleArgumentUnchanged: false,
|
|
81
|
+
}, ['groupId']);
|
|
79
82
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
80
83
|
throw transformedError;
|
|
81
84
|
}
|
|
@@ -127,10 +130,11 @@ export function createOrReplaceAllRules(groupId, options) {
|
|
|
127
130
|
return fromJSON(result.data);
|
|
128
131
|
}
|
|
129
132
|
catch (err) {
|
|
130
|
-
const transformedError =
|
|
131
|
-
|
|
132
|
-
'
|
|
133
|
-
|
|
133
|
+
const transformedError = sdkTransformError(err, {
|
|
134
|
+
spreadPathsToArguments: {},
|
|
135
|
+
explicitPathsToArguments: { groupId: '$[0]', rules: '$[1].rules' },
|
|
136
|
+
singleArgumentUnchanged: false,
|
|
137
|
+
}, ['groupId', 'options']);
|
|
134
138
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
135
139
|
throw transformedError;
|
|
136
140
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social-groups-v2-group-rules.universal.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-rules.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"social-groups-v2-group-rules.universal.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-rules.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAEvF,OAAO,KAAK,qCAAqC,MAAM,qCAAqC,CAAC;AAE7F,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,E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ient: HttpClient): (options?: ListGroupsOptions) => Promise<import("./social-groups-v2-group.universal").ListGroupsResponse & import("./social-groups-v2-group.universal").ListGroupsResponseNonNullableFields>;
|
|
78
78
|
export declare function queryGroups(httpClient: HttpClient): () => import("./social-groups-v2-group.universal").GroupsQueryBuilder;
|
|
79
79
|
export { Type, AllowPolicy, StepKey, PrivacyStatus, IdentityType, SortOrder, MembershipStatus, } from './social-groups-v2-group.universal';
|
|
80
|
-
export { Group, Events, Logo, GroupDetailsPosition, Image, Position, OnboardingStepSettings, AccessRestriction, AccessRestrictionDataOneOf, GroupDetails, CoverImage, GroupSettings, Identity, CreateGroupRequest, CreateGroupResponse, UpdateGroupRequest, UpdateGroupResponse, GroupCoverChanged, GroupDescriptionChanged, DeleteGroupRequest, DeleteGroupResponse, GetGroupRequest, GetGroupResponse, GetGroupBySlugRequest, GetGroupBySlugResponse, ListGroupsRequest, ListGroupsResponse, PagingMetadata, ListGroupsByUserIdRequest, ListGroupsByUserIdResponse, GroupWithMsId, QueryGroupsRequest, Query, Sorting, Paging, QueryGroupsResponse, QueryJoinedGroupsRequest, QueryJoinedGroupsResponse, QueryGroupsByMembershipRequest, GroupPermissions, QueryGroupsByMembershipResponse, CreateGroupResponseNonNullableFields, UpdateGroupResponseNonNullableFields, DeleteGroupResponseNonNullableFields, GetGroupResponseNonNullableFields, GetGroupBySlugResponseNonNullableFields, ListGroupsResponseNonNullableFields, QueryGroupsResponseNonNullableFields, CreateGroupOptions, UpdateGroup, ListGroupsOptions, GroupsQueryResult, GroupsQueryBuilder, } from './social-groups-v2-group.universal';
|
|
80
|
+
export { Group, Events, Logo, GroupDetailsPosition, Image, Position, OnboardingStepSettings, AccessRestriction, AccessRestrictionDataOneOf, GroupDetails, CoverImage, GroupSettings, Identity, CreateGroupRequest, CreateGroupResponse, UpdateGroupRequest, UpdateGroupResponse, GroupCoverChanged, GroupDescriptionChanged, DeleteGroupRequest, DeleteGroupResponse, GetGroupRequest, GetGroupResponse, GetGroupBySlugRequest, GetGroupBySlugResponse, ListGroupsRequest, ListGroupsResponse, PagingMetadata, ListGroupsByUserIdRequest, ListGroupsByUserIdResponse, GroupWithMsId, QueryGroupsRequest, Query, Sorting, Paging, QueryGroupsResponse, QueryJoinedGroupsRequest, QueryJoinedGroupsResponse, QueryGroupsByMembershipRequest, GroupPermissions, QueryGroupsByMembershipResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, CreateGroupResponseNonNullableFields, UpdateGroupResponseNonNullableFields, DeleteGroupResponseNonNullableFields, GetGroupResponseNonNullableFields, GetGroupBySlugResponseNonNullableFields, ListGroupsResponseNonNullableFields, QueryGroupsResponseNonNullableFields, CreateGroupOptions, UpdateGroup, ListGroupsOptions, GroupsQueryResult, GroupsQueryBuilder, } from './social-groups-v2-group.universal';
|
|
@@ -353,6 +353,73 @@ export interface QueryGroupsByMembershipResponse {
|
|
|
353
353
|
groups?: Group[];
|
|
354
354
|
metadata?: PagingMetadata;
|
|
355
355
|
}
|
|
356
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
357
|
+
createdEvent?: EntityCreatedEvent;
|
|
358
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
359
|
+
deletedEvent?: EntityDeletedEvent;
|
|
360
|
+
actionEvent?: ActionEvent;
|
|
361
|
+
/**
|
|
362
|
+
* Unique event ID.
|
|
363
|
+
* Allows clients to ignore duplicate webhooks.
|
|
364
|
+
*/
|
|
365
|
+
id?: string;
|
|
366
|
+
/**
|
|
367
|
+
* Assumes actions are also always typed to an entity_type
|
|
368
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
369
|
+
*/
|
|
370
|
+
entityFqdn?: string;
|
|
371
|
+
/**
|
|
372
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
373
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
374
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
375
|
+
*/
|
|
376
|
+
slug?: string;
|
|
377
|
+
/** ID of the entity associated with the event. */
|
|
378
|
+
entityId?: string;
|
|
379
|
+
/** Event timestamp. */
|
|
380
|
+
eventTime?: Date;
|
|
381
|
+
/**
|
|
382
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
383
|
+
* (for example, GDPR).
|
|
384
|
+
*/
|
|
385
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
386
|
+
/** If present, indicates the action that triggered the event. */
|
|
387
|
+
originatedFrom?: string | null;
|
|
388
|
+
/**
|
|
389
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
390
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
391
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
392
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
393
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
394
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
395
|
+
*/
|
|
396
|
+
entityEventSequence?: string | null;
|
|
397
|
+
}
|
|
398
|
+
/** @oneof */
|
|
399
|
+
export interface DomainEventBodyOneOf {
|
|
400
|
+
createdEvent?: EntityCreatedEvent;
|
|
401
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
402
|
+
deletedEvent?: EntityDeletedEvent;
|
|
403
|
+
actionEvent?: ActionEvent;
|
|
404
|
+
}
|
|
405
|
+
export interface EntityCreatedEvent {
|
|
406
|
+
entityAsJson?: string;
|
|
407
|
+
}
|
|
408
|
+
export interface EntityUpdatedEvent {
|
|
409
|
+
/**
|
|
410
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
411
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
412
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
413
|
+
*/
|
|
414
|
+
currentEntityAsJson?: string;
|
|
415
|
+
}
|
|
416
|
+
export interface EntityDeletedEvent {
|
|
417
|
+
/** Entity that was deleted */
|
|
418
|
+
deletedEntityAsJson?: string | null;
|
|
419
|
+
}
|
|
420
|
+
export interface ActionEvent {
|
|
421
|
+
bodyAsJson?: string;
|
|
422
|
+
}
|
|
356
423
|
export interface CreateGroupResponseNonNullableFields {
|
|
357
424
|
group?: {
|
|
358
425
|
privacyLevel: PrivacyStatus;
|
|
@@ -353,6 +353,73 @@ export interface QueryGroupsByMembershipResponse {
|
|
|
353
353
|
groups?: Group[];
|
|
354
354
|
metadata?: PagingMetadata;
|
|
355
355
|
}
|
|
356
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
357
|
+
createdEvent?: EntityCreatedEvent;
|
|
358
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
359
|
+
deletedEvent?: EntityDeletedEvent;
|
|
360
|
+
actionEvent?: ActionEvent;
|
|
361
|
+
/**
|
|
362
|
+
* Unique event ID.
|
|
363
|
+
* Allows clients to ignore duplicate webhooks.
|
|
364
|
+
*/
|
|
365
|
+
_id?: string;
|
|
366
|
+
/**
|
|
367
|
+
* Assumes actions are also always typed to an entity_type
|
|
368
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
369
|
+
*/
|
|
370
|
+
entityFqdn?: string;
|
|
371
|
+
/**
|
|
372
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
373
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
374
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
375
|
+
*/
|
|
376
|
+
slug?: string;
|
|
377
|
+
/** ID of the entity associated with the event. */
|
|
378
|
+
entityId?: string;
|
|
379
|
+
/** Event timestamp. */
|
|
380
|
+
eventTime?: Date;
|
|
381
|
+
/**
|
|
382
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
383
|
+
* (for example, GDPR).
|
|
384
|
+
*/
|
|
385
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
386
|
+
/** If present, indicates the action that triggered the event. */
|
|
387
|
+
originatedFrom?: string | null;
|
|
388
|
+
/**
|
|
389
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
390
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
391
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
392
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
393
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
394
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
395
|
+
*/
|
|
396
|
+
entityEventSequence?: string | null;
|
|
397
|
+
}
|
|
398
|
+
/** @oneof */
|
|
399
|
+
export interface DomainEventBodyOneOf {
|
|
400
|
+
createdEvent?: EntityCreatedEvent;
|
|
401
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
402
|
+
deletedEvent?: EntityDeletedEvent;
|
|
403
|
+
actionEvent?: ActionEvent;
|
|
404
|
+
}
|
|
405
|
+
export interface EntityCreatedEvent {
|
|
406
|
+
entityAsJson?: string;
|
|
407
|
+
}
|
|
408
|
+
export interface EntityUpdatedEvent {
|
|
409
|
+
/**
|
|
410
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
411
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
412
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
413
|
+
*/
|
|
414
|
+
currentEntityAsJson?: string;
|
|
415
|
+
}
|
|
416
|
+
export interface EntityDeletedEvent {
|
|
417
|
+
/** Entity that was deleted */
|
|
418
|
+
deletedEntityAsJson?: string | null;
|
|
419
|
+
}
|
|
420
|
+
export interface ActionEvent {
|
|
421
|
+
bodyAsJson?: string;
|
|
422
|
+
}
|
|
356
423
|
export interface CreateGroupResponseNonNullableFields {
|
|
357
424
|
group?: {
|
|
358
425
|
privacyLevel: PrivacyStatus;
|
|
@@ -8,6 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { serializer, transformError, resolveQueryFieldsTransformationPaths, } from '@wix/metro-runtime/velo';
|
|
11
|
+
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
11
12
|
import * as ambassadorWixSocialGroupsV2Group from './social-groups-v2-group.http';
|
|
12
13
|
// @ts-ignore
|
|
13
14
|
import { wrapWithQueryBuilder } from '@wix/motion-edm-autogen-query-wrapper';
|
|
@@ -135,10 +136,14 @@ export function createGroup(group, options) {
|
|
|
135
136
|
return fromJSON(result.data);
|
|
136
137
|
}
|
|
137
138
|
catch (err) {
|
|
138
|
-
const transformedError =
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
const transformedError = sdkTransformError(err, {
|
|
140
|
+
spreadPathsToArguments: {},
|
|
141
|
+
explicitPathsToArguments: {
|
|
142
|
+
group: '$[0]',
|
|
143
|
+
creatorId: '$[1].creatorId',
|
|
144
|
+
},
|
|
145
|
+
singleArgumentUnchanged: false,
|
|
146
|
+
}, ['group', 'options']);
|
|
142
147
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
143
148
|
throw transformedError;
|
|
144
149
|
}
|
|
@@ -196,10 +201,11 @@ export function updateGroup(_id, group) {
|
|
|
196
201
|
return fromJSON(result.data);
|
|
197
202
|
}
|
|
198
203
|
catch (err) {
|
|
199
|
-
const transformedError =
|
|
200
|
-
'
|
|
201
|
-
'group',
|
|
202
|
-
|
|
204
|
+
const transformedError = sdkTransformError(err, {
|
|
205
|
+
spreadPathsToArguments: { group: '$[1]' },
|
|
206
|
+
explicitPathsToArguments: { 'group.id': '$[0]' },
|
|
207
|
+
singleArgumentUnchanged: false,
|
|
208
|
+
}, ['_id', 'group']);
|
|
203
209
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
204
210
|
throw transformedError;
|
|
205
211
|
}
|
|
@@ -250,9 +256,11 @@ export function deleteGroup(groupId) {
|
|
|
250
256
|
return fromJSON(result.data);
|
|
251
257
|
}
|
|
252
258
|
catch (err) {
|
|
253
|
-
const transformedError =
|
|
254
|
-
|
|
255
|
-
|
|
259
|
+
const transformedError = sdkTransformError(err, {
|
|
260
|
+
spreadPathsToArguments: {},
|
|
261
|
+
explicitPathsToArguments: { groupId: '$[0]' },
|
|
262
|
+
singleArgumentUnchanged: false,
|
|
263
|
+
}, ['groupId']);
|
|
256
264
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
257
265
|
throw transformedError;
|
|
258
266
|
}
|
|
@@ -305,9 +313,11 @@ export function getGroup(groupId) {
|
|
|
305
313
|
return fromJSON(result.data);
|
|
306
314
|
}
|
|
307
315
|
catch (err) {
|
|
308
|
-
const transformedError =
|
|
309
|
-
|
|
310
|
-
|
|
316
|
+
const transformedError = sdkTransformError(err, {
|
|
317
|
+
spreadPathsToArguments: {},
|
|
318
|
+
explicitPathsToArguments: { groupId: '$[0]' },
|
|
319
|
+
singleArgumentUnchanged: false,
|
|
320
|
+
}, ['groupId']);
|
|
311
321
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
312
322
|
throw transformedError;
|
|
313
323
|
}
|
|
@@ -359,9 +369,11 @@ export function getGroupBySlug(slug) {
|
|
|
359
369
|
return fromJSON(result.data);
|
|
360
370
|
}
|
|
361
371
|
catch (err) {
|
|
362
|
-
const transformedError =
|
|
363
|
-
|
|
364
|
-
|
|
372
|
+
const transformedError = sdkTransformError(err, {
|
|
373
|
+
spreadPathsToArguments: {},
|
|
374
|
+
explicitPathsToArguments: { slug: '$[0]' },
|
|
375
|
+
singleArgumentUnchanged: false,
|
|
376
|
+
}, ['slug']);
|
|
365
377
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
366
378
|
throw transformedError;
|
|
367
379
|
}
|
|
@@ -415,9 +427,14 @@ export function listGroups(options) {
|
|
|
415
427
|
return fromJSON(result.data);
|
|
416
428
|
}
|
|
417
429
|
catch (err) {
|
|
418
|
-
const transformedError =
|
|
419
|
-
|
|
420
|
-
|
|
430
|
+
const transformedError = sdkTransformError(err, {
|
|
431
|
+
spreadPathsToArguments: {},
|
|
432
|
+
explicitPathsToArguments: {
|
|
433
|
+
limit: '$[0].limit',
|
|
434
|
+
offset: '$[0].offset',
|
|
435
|
+
},
|
|
436
|
+
singleArgumentUnchanged: false,
|
|
437
|
+
}, ['options']);
|
|
421
438
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
422
439
|
throw transformedError;
|
|
423
440
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social-groups-v2-group.universal.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,gCAAgC,MAAM,+BAA+B,CAAC;AAClF,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAA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,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,4DAAG,MAAM,CAAC,CAAC;gBACjC,OAAO,MAAM,CAAC;YAChB,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,4DAAG,GAAG,CAAC,CAAC;gBAC5B,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC,CAAA;QACD,kBAAkB,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC;QACjE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtD,gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,qCAAqC,CAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC"}
|
|
1
|
+
{"version":3,"file":"social-groups-v2-group.universal.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAEvF,OAAO,KAAK,gCAAgC,MAAM,+BAA+B,CAAC;AAClF,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,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AAE,IAAI,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtD,gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,qCAAqC,CAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -8,4 +8,4 @@ export declare function rejectJoinGroupRequests(httpClient: HttpClient): (groupI
|
|
|
8
8
|
export declare function listJoinGroupRequests(httpClient: HttpClient): (groupId: string, options?: ListJoinGroupRequestsOptions) => Promise<import("./social-groups-v2-join-group-request.universal").ListJoinGroupRequestsResponse & import("./social-groups-v2-join-group-request.universal").ListJoinGroupRequestsResponseNonNullableFields>;
|
|
9
9
|
export declare function queryJoinGroupRequests(httpClient: HttpClient): (groupId: string, options?: QueryJoinGroupRequestsOptions) => import("./social-groups-v2-join-group-request.universal").JoinGroupRequestsQueryBuilder;
|
|
10
10
|
export { RequestStatus, ViolationType, ItemsToUpdate, OwnershipFilter, SortOrder, } from './social-groups-v2-join-group-request.universal';
|
|
11
|
-
export { JoinGroupRequest, RequestDetails, SocialGroupsEvent, SocialGroupsEventPayloadOneOf, MemberJoinedGroup, MembersAddedToGroup, JoinRequestsApproved, MembersInvitedToGroup, GetJoinRequirementsRequest, MembershipQuestionAnswer, GetJoinRequirementsResponse, PaidPlan, EventsViolationOptions, PricingPlanViolationOptions, MembershipQuestionViolationOptions, Violation, ViolationViolationOptionsOneOf, SubmitJoinGroupRequestRequest, SubmitJoinGroupRequestResponse, CancelJoinGroupRequestRequest, CancelJoinGroupRequestResponse, JoinGroupRequestCancelled, ApproveJoinGroupRequestsRequest, ApproveJoinGroupRequestsResponse, JoinGroupRequestApproved, RejectJoinGroupRequestsRequest, Rejection, RejectJoinGroupRequestsResponse, JoinGroupRequestRejected, ListJoinGroupRequestsRequest, ListJoinGroupRequestsResponse, PagingMetadata, QueryJoinGroupRequestsRequest, Query, Sorting, Paging, QueryJoinGroupRequestsResponse, RejectAllJoinGroupRequestsRequest, RejectAllJoinGroupRequestsResponse, ApproveAllJoinGroupRequestsRequest, ApproveAllJoinGroupRequestsResponse, ListAllJoinGroupRequestsRequest, ListAllJoinGroupRequestsResponse, ApproveJoinGroupRequestsResponseNonNullableFields, RejectJoinGroupRequestsResponseNonNullableFields, ListJoinGroupRequestsResponseNonNullableFields, QueryJoinGroupRequestsResponseNonNullableFields, ApproveJoinGroupRequestsOptions, ListJoinGroupRequestsOptions, QueryJoinGroupRequestsOptions, JoinGroupRequestsQueryResult, JoinGroupRequestsQueryBuilder, } from './social-groups-v2-join-group-request.universal';
|
|
11
|
+
export { JoinGroupRequest, RequestDetails, SocialGroupsEvent, SocialGroupsEventPayloadOneOf, MemberJoinedGroup, MembersAddedToGroup, JoinRequestsApproved, MembersInvitedToGroup, GetJoinRequirementsRequest, MembershipQuestionAnswer, GetJoinRequirementsResponse, PaidPlan, EventsViolationOptions, PricingPlanViolationOptions, MembershipQuestionViolationOptions, Violation, ViolationViolationOptionsOneOf, SubmitJoinGroupRequestRequest, SubmitJoinGroupRequestResponse, CancelJoinGroupRequestRequest, CancelJoinGroupRequestResponse, JoinGroupRequestCancelled, ApproveJoinGroupRequestsRequest, ApproveJoinGroupRequestsResponse, JoinGroupRequestApproved, RejectJoinGroupRequestsRequest, Rejection, RejectJoinGroupRequestsResponse, JoinGroupRequestRejected, ListJoinGroupRequestsRequest, ListJoinGroupRequestsResponse, PagingMetadata, QueryJoinGroupRequestsRequest, Query, Sorting, Paging, QueryJoinGroupRequestsResponse, RejectAllJoinGroupRequestsRequest, RejectAllJoinGroupRequestsResponse, ApproveAllJoinGroupRequestsRequest, ApproveAllJoinGroupRequestsResponse, ListAllJoinGroupRequestsRequest, ListAllJoinGroupRequestsResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ApproveJoinGroupRequestsResponseNonNullableFields, RejectJoinGroupRequestsResponseNonNullableFields, ListJoinGroupRequestsResponseNonNullableFields, QueryJoinGroupRequestsResponseNonNullableFields, ApproveJoinGroupRequestsOptions, ListJoinGroupRequestsOptions, QueryJoinGroupRequestsOptions, JoinGroupRequestsQueryResult, JoinGroupRequestsQueryBuilder, } from './social-groups-v2-join-group-request.universal';
|
|
@@ -312,6 +312,73 @@ export interface ListAllJoinGroupRequestsResponse {
|
|
|
312
312
|
/** Join group requests. */
|
|
313
313
|
joinGroupRequests?: JoinGroupRequest[];
|
|
314
314
|
}
|
|
315
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
316
|
+
createdEvent?: EntityCreatedEvent;
|
|
317
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
318
|
+
deletedEvent?: EntityDeletedEvent;
|
|
319
|
+
actionEvent?: ActionEvent;
|
|
320
|
+
/**
|
|
321
|
+
* Unique event ID.
|
|
322
|
+
* Allows clients to ignore duplicate webhooks.
|
|
323
|
+
*/
|
|
324
|
+
id?: string;
|
|
325
|
+
/**
|
|
326
|
+
* Assumes actions are also always typed to an entity_type
|
|
327
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
328
|
+
*/
|
|
329
|
+
entityFqdn?: string;
|
|
330
|
+
/**
|
|
331
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
332
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
333
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
334
|
+
*/
|
|
335
|
+
slug?: string;
|
|
336
|
+
/** ID of the entity associated with the event. */
|
|
337
|
+
entityId?: string;
|
|
338
|
+
/** Event timestamp. */
|
|
339
|
+
eventTime?: Date;
|
|
340
|
+
/**
|
|
341
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
342
|
+
* (for example, GDPR).
|
|
343
|
+
*/
|
|
344
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
345
|
+
/** If present, indicates the action that triggered the event. */
|
|
346
|
+
originatedFrom?: string | null;
|
|
347
|
+
/**
|
|
348
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
349
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
350
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
351
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
352
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
353
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
354
|
+
*/
|
|
355
|
+
entityEventSequence?: string | null;
|
|
356
|
+
}
|
|
357
|
+
/** @oneof */
|
|
358
|
+
export interface DomainEventBodyOneOf {
|
|
359
|
+
createdEvent?: EntityCreatedEvent;
|
|
360
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
361
|
+
deletedEvent?: EntityDeletedEvent;
|
|
362
|
+
actionEvent?: ActionEvent;
|
|
363
|
+
}
|
|
364
|
+
export interface EntityCreatedEvent {
|
|
365
|
+
entityAsJson?: string;
|
|
366
|
+
}
|
|
367
|
+
export interface EntityUpdatedEvent {
|
|
368
|
+
/**
|
|
369
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
370
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
371
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
372
|
+
*/
|
|
373
|
+
currentEntityAsJson?: string;
|
|
374
|
+
}
|
|
375
|
+
export interface EntityDeletedEvent {
|
|
376
|
+
/** Entity that was deleted */
|
|
377
|
+
deletedEntityAsJson?: string | null;
|
|
378
|
+
}
|
|
379
|
+
export interface ActionEvent {
|
|
380
|
+
bodyAsJson?: string;
|
|
381
|
+
}
|
|
315
382
|
export interface ApproveJoinGroupRequestsResponseNonNullableFields {
|
|
316
383
|
joinGroupRequests: {
|
|
317
384
|
siteMemberId: string;
|
|
@@ -306,6 +306,73 @@ export interface ListAllJoinGroupRequestsResponse {
|
|
|
306
306
|
/** Join group requests. */
|
|
307
307
|
joinGroupRequests?: JoinGroupRequest[];
|
|
308
308
|
}
|
|
309
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
310
|
+
createdEvent?: EntityCreatedEvent;
|
|
311
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
312
|
+
deletedEvent?: EntityDeletedEvent;
|
|
313
|
+
actionEvent?: ActionEvent;
|
|
314
|
+
/**
|
|
315
|
+
* Unique event ID.
|
|
316
|
+
* Allows clients to ignore duplicate webhooks.
|
|
317
|
+
*/
|
|
318
|
+
_id?: string;
|
|
319
|
+
/**
|
|
320
|
+
* Assumes actions are also always typed to an entity_type
|
|
321
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
322
|
+
*/
|
|
323
|
+
entityFqdn?: string;
|
|
324
|
+
/**
|
|
325
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
326
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
327
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
328
|
+
*/
|
|
329
|
+
slug?: string;
|
|
330
|
+
/** ID of the entity associated with the event. */
|
|
331
|
+
entityId?: string;
|
|
332
|
+
/** Event timestamp. */
|
|
333
|
+
eventTime?: Date;
|
|
334
|
+
/**
|
|
335
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
336
|
+
* (for example, GDPR).
|
|
337
|
+
*/
|
|
338
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
339
|
+
/** If present, indicates the action that triggered the event. */
|
|
340
|
+
originatedFrom?: string | null;
|
|
341
|
+
/**
|
|
342
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
343
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
344
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
345
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
346
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
347
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
348
|
+
*/
|
|
349
|
+
entityEventSequence?: string | null;
|
|
350
|
+
}
|
|
351
|
+
/** @oneof */
|
|
352
|
+
export interface DomainEventBodyOneOf {
|
|
353
|
+
createdEvent?: EntityCreatedEvent;
|
|
354
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
355
|
+
deletedEvent?: EntityDeletedEvent;
|
|
356
|
+
actionEvent?: ActionEvent;
|
|
357
|
+
}
|
|
358
|
+
export interface EntityCreatedEvent {
|
|
359
|
+
entityAsJson?: string;
|
|
360
|
+
}
|
|
361
|
+
export interface EntityUpdatedEvent {
|
|
362
|
+
/**
|
|
363
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
364
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
365
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
366
|
+
*/
|
|
367
|
+
currentEntityAsJson?: string;
|
|
368
|
+
}
|
|
369
|
+
export interface EntityDeletedEvent {
|
|
370
|
+
/** Entity that was deleted */
|
|
371
|
+
deletedEntityAsJson?: string | null;
|
|
372
|
+
}
|
|
373
|
+
export interface ActionEvent {
|
|
374
|
+
bodyAsJson?: string;
|
|
375
|
+
}
|
|
309
376
|
export interface ApproveJoinGroupRequestsResponseNonNullableFields {
|
|
310
377
|
joinGroupRequests: {
|
|
311
378
|
siteMemberId: string;
|
|
@@ -8,6 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { serializer, transformError, resolveQueryFieldsTransformationPaths, } from '@wix/metro-runtime/velo';
|
|
11
|
+
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
11
12
|
import * as ambassadorWixSocialGroupsV2JoinGroupRequest from './social-groups-v2-join-group-request.http';
|
|
12
13
|
// @ts-ignore
|
|
13
14
|
import { wrapWithQueryBuilder } from '@wix/motion-edm-autogen-query-wrapper';
|
|
@@ -134,11 +135,15 @@ export function approveJoinGroupRequests(groupId, memberIds, options) {
|
|
|
134
135
|
return fromJSON(result.data);
|
|
135
136
|
}
|
|
136
137
|
catch (err) {
|
|
137
|
-
const transformedError =
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
const transformedError = sdkTransformError(err, {
|
|
139
|
+
spreadPathsToArguments: {},
|
|
140
|
+
explicitPathsToArguments: {
|
|
141
|
+
groupId: '$[0]',
|
|
142
|
+
memberIds: '$[1]',
|
|
143
|
+
siteMemberIds: '$[2].siteMemberIds',
|
|
144
|
+
},
|
|
145
|
+
singleArgumentUnchanged: false,
|
|
146
|
+
}, ['groupId', 'memberIds', 'options']);
|
|
142
147
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
143
148
|
throw transformedError;
|
|
144
149
|
}
|
|
@@ -197,10 +202,11 @@ export function rejectJoinGroupRequests(groupId, rejections) {
|
|
|
197
202
|
return fromJSON(result.data);
|
|
198
203
|
}
|
|
199
204
|
catch (err) {
|
|
200
|
-
const transformedError =
|
|
201
|
-
|
|
202
|
-
'rejections',
|
|
203
|
-
|
|
205
|
+
const transformedError = sdkTransformError(err, {
|
|
206
|
+
spreadPathsToArguments: {},
|
|
207
|
+
explicitPathsToArguments: { groupId: '$[0]', rejections: '$[1]' },
|
|
208
|
+
singleArgumentUnchanged: false,
|
|
209
|
+
}, ['groupId', 'rejections']);
|
|
204
210
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
205
211
|
throw transformedError;
|
|
206
212
|
}
|
|
@@ -259,10 +265,15 @@ export function listJoinGroupRequests(groupId, options) {
|
|
|
259
265
|
return fromJSON(result.data);
|
|
260
266
|
}
|
|
261
267
|
catch (err) {
|
|
262
|
-
const transformedError =
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
268
|
+
const transformedError = sdkTransformError(err, {
|
|
269
|
+
spreadPathsToArguments: {},
|
|
270
|
+
explicitPathsToArguments: {
|
|
271
|
+
groupId: '$[0]',
|
|
272
|
+
limit: '$[1].limit',
|
|
273
|
+
offset: '$[1].offset',
|
|
274
|
+
},
|
|
275
|
+
singleArgumentUnchanged: false,
|
|
276
|
+
}, ['groupId', 'options']);
|
|
266
277
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
267
278
|
throw transformedError;
|
|
268
279
|
}
|