@wix/auto_sdk_portfolio_project-items 1.0.41 → 1.0.43
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 +11 -11
- package/build/cjs/index.js +124 -124
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +194 -183
- package/build/cjs/index.typings.js +116 -116
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +187 -176
- package/build/cjs/meta.js +111 -111
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +9 -9
- package/build/cjs/schemas.js +11 -11
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +11 -11
- package/build/es/index.mjs +124 -124
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +194 -183
- package/build/es/index.typings.mjs +116 -116
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +187 -176
- package/build/es/meta.mjs +111 -111
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +9 -9
- package/build/es/schemas.mjs +11 -11
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -11
- package/build/internal/cjs/index.js +124 -124
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +194 -183
- package/build/internal/cjs/index.typings.js +116 -116
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +187 -176
- package/build/internal/cjs/meta.js +111 -111
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +9 -9
- package/build/internal/cjs/schemas.js +11 -11
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +11 -11
- package/build/internal/es/index.mjs +124 -124
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +194 -183
- package/build/internal/es/index.typings.mjs +116 -116
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +187 -176
- package/build/internal/es/meta.mjs +111 -111
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +9 -9
- package/build/internal/es/schemas.mjs +11 -11
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateProjectItemRequest as CreateProjectItemRequest$1, CreateProjectItemResponse as CreateProjectItemResponse$1, BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequest$1, BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponse$1, GetProjectItemRequest as GetProjectItemRequest$1, GetProjectItemResponse as GetProjectItemResponse$1, ListProjectItemsRequest as ListProjectItemsRequest$1, ListProjectItemsResponse as ListProjectItemsResponse$1, UpdateProjectItemRequest as UpdateProjectItemRequest$1, UpdateProjectItemResponse as UpdateProjectItemResponse$1, BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequest$1, BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponse$1, DeleteProjectItemRequest as DeleteProjectItemRequest$1, DeleteProjectItemResponse as DeleteProjectItemResponse$1, BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequest$1, BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponse$1, DuplicateProjectItemsRequest as DuplicateProjectItemsRequest$1, DuplicateProjectItemsResponse as DuplicateProjectItemsResponse$1
|
|
1
|
+
import { GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequest$1, GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponse$1, CreateProjectItemRequest as CreateProjectItemRequest$1, CreateProjectItemResponse as CreateProjectItemResponse$1, BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequest$1, BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponse$1, GetProjectItemRequest as GetProjectItemRequest$1, GetProjectItemResponse as GetProjectItemResponse$1, ListProjectItemsRequest as ListProjectItemsRequest$1, ListProjectItemsResponse as ListProjectItemsResponse$1, UpdateProjectItemRequest as UpdateProjectItemRequest$1, UpdateProjectItemResponse as UpdateProjectItemResponse$1, BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequest$1, BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponse$1, DeleteProjectItemRequest as DeleteProjectItemRequest$1, DeleteProjectItemResponse as DeleteProjectItemResponse$1, BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequest$1, BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponse$1, DuplicateProjectItemsRequest as DuplicateProjectItemsRequest$1, DuplicateProjectItemsResponse as DuplicateProjectItemsResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Item extends ItemMetadataOneOf {
|
|
@@ -211,6 +211,179 @@ interface Link {
|
|
|
211
211
|
*/
|
|
212
212
|
target?: string | null;
|
|
213
213
|
}
|
|
214
|
+
interface GenerateTokenForProjectItemsRequest {
|
|
215
|
+
/**
|
|
216
|
+
* Media ids of requested project items
|
|
217
|
+
* @minSize 1
|
|
218
|
+
* @maxLength 100
|
|
219
|
+
*/
|
|
220
|
+
mediaIds: string[];
|
|
221
|
+
}
|
|
222
|
+
interface GenerateTokenForProjectItemsResponse {
|
|
223
|
+
/** Generated media tokens for project items */
|
|
224
|
+
mediaTokens?: ProjectItemMediaToken[];
|
|
225
|
+
}
|
|
226
|
+
interface ProjectItemMediaToken {
|
|
227
|
+
/** Media id of project item */
|
|
228
|
+
mediaId?: string;
|
|
229
|
+
/** Generated media token for project item */
|
|
230
|
+
mediaToken?: string;
|
|
231
|
+
}
|
|
232
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
233
|
+
createdEvent?: EntityCreatedEvent;
|
|
234
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
235
|
+
deletedEvent?: EntityDeletedEvent;
|
|
236
|
+
actionEvent?: ActionEvent;
|
|
237
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
238
|
+
id?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
241
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
242
|
+
*/
|
|
243
|
+
entityFqdn?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
246
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
247
|
+
*/
|
|
248
|
+
slug?: string;
|
|
249
|
+
/** ID of the entity associated with the event. */
|
|
250
|
+
entityId?: string;
|
|
251
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
252
|
+
eventTime?: Date | null;
|
|
253
|
+
/**
|
|
254
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
255
|
+
* (for example, GDPR).
|
|
256
|
+
*/
|
|
257
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
258
|
+
/** If present, indicates the action that triggered the event. */
|
|
259
|
+
originatedFrom?: string | null;
|
|
260
|
+
/**
|
|
261
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
262
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
263
|
+
*/
|
|
264
|
+
entityEventSequence?: string | null;
|
|
265
|
+
}
|
|
266
|
+
/** @oneof */
|
|
267
|
+
interface DomainEventBodyOneOf {
|
|
268
|
+
createdEvent?: EntityCreatedEvent;
|
|
269
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
270
|
+
deletedEvent?: EntityDeletedEvent;
|
|
271
|
+
actionEvent?: ActionEvent;
|
|
272
|
+
}
|
|
273
|
+
interface EntityCreatedEvent {
|
|
274
|
+
entityAsJson?: string;
|
|
275
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
276
|
+
restoreInfo?: RestoreInfo;
|
|
277
|
+
}
|
|
278
|
+
interface RestoreInfo {
|
|
279
|
+
deletedDate?: Date | null;
|
|
280
|
+
}
|
|
281
|
+
interface EntityUpdatedEvent {
|
|
282
|
+
/**
|
|
283
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
284
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
285
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
286
|
+
*/
|
|
287
|
+
currentEntityAsJson?: string;
|
|
288
|
+
}
|
|
289
|
+
interface EntityDeletedEvent {
|
|
290
|
+
/** Entity that was deleted. */
|
|
291
|
+
deletedEntityAsJson?: string | null;
|
|
292
|
+
}
|
|
293
|
+
interface ActionEvent {
|
|
294
|
+
bodyAsJson?: string;
|
|
295
|
+
}
|
|
296
|
+
interface MessageEnvelope {
|
|
297
|
+
/**
|
|
298
|
+
* App instance ID.
|
|
299
|
+
* @format GUID
|
|
300
|
+
*/
|
|
301
|
+
instanceId?: string | null;
|
|
302
|
+
/**
|
|
303
|
+
* Event type.
|
|
304
|
+
* @maxLength 150
|
|
305
|
+
*/
|
|
306
|
+
eventType?: string;
|
|
307
|
+
/** The identification type and identity data. */
|
|
308
|
+
identity?: IdentificationData;
|
|
309
|
+
/** Stringify payload. */
|
|
310
|
+
data?: string;
|
|
311
|
+
/** Details related to the account */
|
|
312
|
+
accountInfo?: AccountInfo;
|
|
313
|
+
}
|
|
314
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
315
|
+
/**
|
|
316
|
+
* ID of a site visitor that has not logged in to the site.
|
|
317
|
+
* @format GUID
|
|
318
|
+
*/
|
|
319
|
+
anonymousVisitorId?: string;
|
|
320
|
+
/**
|
|
321
|
+
* ID of a site visitor that has logged in to the site.
|
|
322
|
+
* @format GUID
|
|
323
|
+
*/
|
|
324
|
+
memberId?: string;
|
|
325
|
+
/**
|
|
326
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
327
|
+
* @format GUID
|
|
328
|
+
*/
|
|
329
|
+
wixUserId?: string;
|
|
330
|
+
/**
|
|
331
|
+
* ID of an app.
|
|
332
|
+
* @format GUID
|
|
333
|
+
*/
|
|
334
|
+
appId?: string;
|
|
335
|
+
/** @readonly */
|
|
336
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
337
|
+
}
|
|
338
|
+
/** @oneof */
|
|
339
|
+
interface IdentificationDataIdOneOf {
|
|
340
|
+
/**
|
|
341
|
+
* ID of a site visitor that has not logged in to the site.
|
|
342
|
+
* @format GUID
|
|
343
|
+
*/
|
|
344
|
+
anonymousVisitorId?: string;
|
|
345
|
+
/**
|
|
346
|
+
* ID of a site visitor that has logged in to the site.
|
|
347
|
+
* @format GUID
|
|
348
|
+
*/
|
|
349
|
+
memberId?: string;
|
|
350
|
+
/**
|
|
351
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
352
|
+
* @format GUID
|
|
353
|
+
*/
|
|
354
|
+
wixUserId?: string;
|
|
355
|
+
/**
|
|
356
|
+
* ID of an app.
|
|
357
|
+
* @format GUID
|
|
358
|
+
*/
|
|
359
|
+
appId?: string;
|
|
360
|
+
}
|
|
361
|
+
declare enum WebhookIdentityType {
|
|
362
|
+
UNKNOWN = "UNKNOWN",
|
|
363
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
364
|
+
MEMBER = "MEMBER",
|
|
365
|
+
WIX_USER = "WIX_USER",
|
|
366
|
+
APP = "APP"
|
|
367
|
+
}
|
|
368
|
+
/** @enumType */
|
|
369
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
370
|
+
interface AccountInfo {
|
|
371
|
+
/**
|
|
372
|
+
* ID of the Wix account associated with the event.
|
|
373
|
+
* @format GUID
|
|
374
|
+
*/
|
|
375
|
+
accountId?: string | null;
|
|
376
|
+
/**
|
|
377
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
378
|
+
* @format GUID
|
|
379
|
+
*/
|
|
380
|
+
parentAccountId?: string | null;
|
|
381
|
+
/**
|
|
382
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
383
|
+
* @format GUID
|
|
384
|
+
*/
|
|
385
|
+
siteId?: string | null;
|
|
386
|
+
}
|
|
214
387
|
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
215
388
|
/**
|
|
216
389
|
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
@@ -535,6 +708,11 @@ interface Sorting {
|
|
|
535
708
|
fieldName?: string;
|
|
536
709
|
/** Sort order. */
|
|
537
710
|
order?: SortOrderWithLiterals;
|
|
711
|
+
/**
|
|
712
|
+
* Origin point for geo-distance sorting on a GEO field
|
|
713
|
+
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
714
|
+
*/
|
|
715
|
+
origin?: AddressLocation;
|
|
538
716
|
}
|
|
539
717
|
declare enum SortOrder {
|
|
540
718
|
ASC = "ASC",
|
|
@@ -542,6 +720,12 @@ declare enum SortOrder {
|
|
|
542
720
|
}
|
|
543
721
|
/** @enumType */
|
|
544
722
|
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
723
|
+
interface AddressLocation {
|
|
724
|
+
/** Address latitude. */
|
|
725
|
+
latitude?: number | null;
|
|
726
|
+
/** Address longitude. */
|
|
727
|
+
longitude?: number | null;
|
|
728
|
+
}
|
|
545
729
|
interface CursorPaging {
|
|
546
730
|
/**
|
|
547
731
|
* Maximum number of items to return in the results.
|
|
@@ -665,70 +849,6 @@ interface CreateProjectGalleryResponse {
|
|
|
665
849
|
*/
|
|
666
850
|
galleryId?: string;
|
|
667
851
|
}
|
|
668
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
669
|
-
createdEvent?: EntityCreatedEvent;
|
|
670
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
671
|
-
deletedEvent?: EntityDeletedEvent;
|
|
672
|
-
actionEvent?: ActionEvent;
|
|
673
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
674
|
-
id?: string;
|
|
675
|
-
/**
|
|
676
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
677
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
678
|
-
*/
|
|
679
|
-
entityFqdn?: string;
|
|
680
|
-
/**
|
|
681
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
682
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
683
|
-
*/
|
|
684
|
-
slug?: string;
|
|
685
|
-
/** ID of the entity associated with the event. */
|
|
686
|
-
entityId?: string;
|
|
687
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
688
|
-
eventTime?: Date | null;
|
|
689
|
-
/**
|
|
690
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
691
|
-
* (for example, GDPR).
|
|
692
|
-
*/
|
|
693
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
694
|
-
/** If present, indicates the action that triggered the event. */
|
|
695
|
-
originatedFrom?: string | null;
|
|
696
|
-
/**
|
|
697
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
698
|
-
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
699
|
-
*/
|
|
700
|
-
entityEventSequence?: string | null;
|
|
701
|
-
}
|
|
702
|
-
/** @oneof */
|
|
703
|
-
interface DomainEventBodyOneOf {
|
|
704
|
-
createdEvent?: EntityCreatedEvent;
|
|
705
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
706
|
-
deletedEvent?: EntityDeletedEvent;
|
|
707
|
-
actionEvent?: ActionEvent;
|
|
708
|
-
}
|
|
709
|
-
interface EntityCreatedEvent {
|
|
710
|
-
entityAsJson?: string;
|
|
711
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
712
|
-
restoreInfo?: RestoreInfo;
|
|
713
|
-
}
|
|
714
|
-
interface RestoreInfo {
|
|
715
|
-
deletedDate?: Date | null;
|
|
716
|
-
}
|
|
717
|
-
interface EntityUpdatedEvent {
|
|
718
|
-
/**
|
|
719
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
720
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
721
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
722
|
-
*/
|
|
723
|
-
currentEntityAsJson?: string;
|
|
724
|
-
}
|
|
725
|
-
interface EntityDeletedEvent {
|
|
726
|
-
/** Entity that was deleted. */
|
|
727
|
-
deletedEntityAsJson?: string | null;
|
|
728
|
-
}
|
|
729
|
-
interface ActionEvent {
|
|
730
|
-
bodyAsJson?: string;
|
|
731
|
-
}
|
|
732
852
|
interface Empty {
|
|
733
853
|
}
|
|
734
854
|
interface DeletedProjectRestored {
|
|
@@ -761,115 +881,6 @@ interface DuplicateProjectItemsResponse {
|
|
|
761
881
|
/** Bulk action metadata. */
|
|
762
882
|
bulkActionMetadata?: BulkActionMetadata;
|
|
763
883
|
}
|
|
764
|
-
interface MessageEnvelope {
|
|
765
|
-
/**
|
|
766
|
-
* App instance ID.
|
|
767
|
-
* @format GUID
|
|
768
|
-
*/
|
|
769
|
-
instanceId?: string | null;
|
|
770
|
-
/**
|
|
771
|
-
* Event type.
|
|
772
|
-
* @maxLength 150
|
|
773
|
-
*/
|
|
774
|
-
eventType?: string;
|
|
775
|
-
/** The identification type and identity data. */
|
|
776
|
-
identity?: IdentificationData;
|
|
777
|
-
/** Stringify payload. */
|
|
778
|
-
data?: string;
|
|
779
|
-
/** Details related to the account */
|
|
780
|
-
accountInfo?: AccountInfo;
|
|
781
|
-
}
|
|
782
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
783
|
-
/**
|
|
784
|
-
* ID of a site visitor that has not logged in to the site.
|
|
785
|
-
* @format GUID
|
|
786
|
-
*/
|
|
787
|
-
anonymousVisitorId?: string;
|
|
788
|
-
/**
|
|
789
|
-
* ID of a site visitor that has logged in to the site.
|
|
790
|
-
* @format GUID
|
|
791
|
-
*/
|
|
792
|
-
memberId?: string;
|
|
793
|
-
/**
|
|
794
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
795
|
-
* @format GUID
|
|
796
|
-
*/
|
|
797
|
-
wixUserId?: string;
|
|
798
|
-
/**
|
|
799
|
-
* ID of an app.
|
|
800
|
-
* @format GUID
|
|
801
|
-
*/
|
|
802
|
-
appId?: string;
|
|
803
|
-
/** @readonly */
|
|
804
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
805
|
-
}
|
|
806
|
-
/** @oneof */
|
|
807
|
-
interface IdentificationDataIdOneOf {
|
|
808
|
-
/**
|
|
809
|
-
* ID of a site visitor that has not logged in to the site.
|
|
810
|
-
* @format GUID
|
|
811
|
-
*/
|
|
812
|
-
anonymousVisitorId?: string;
|
|
813
|
-
/**
|
|
814
|
-
* ID of a site visitor that has logged in to the site.
|
|
815
|
-
* @format GUID
|
|
816
|
-
*/
|
|
817
|
-
memberId?: string;
|
|
818
|
-
/**
|
|
819
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
820
|
-
* @format GUID
|
|
821
|
-
*/
|
|
822
|
-
wixUserId?: string;
|
|
823
|
-
/**
|
|
824
|
-
* ID of an app.
|
|
825
|
-
* @format GUID
|
|
826
|
-
*/
|
|
827
|
-
appId?: string;
|
|
828
|
-
}
|
|
829
|
-
declare enum WebhookIdentityType {
|
|
830
|
-
UNKNOWN = "UNKNOWN",
|
|
831
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
832
|
-
MEMBER = "MEMBER",
|
|
833
|
-
WIX_USER = "WIX_USER",
|
|
834
|
-
APP = "APP"
|
|
835
|
-
}
|
|
836
|
-
/** @enumType */
|
|
837
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
838
|
-
interface AccountInfo {
|
|
839
|
-
/**
|
|
840
|
-
* ID of the Wix account associated with the event.
|
|
841
|
-
* @format GUID
|
|
842
|
-
*/
|
|
843
|
-
accountId?: string | null;
|
|
844
|
-
/**
|
|
845
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
846
|
-
* @format GUID
|
|
847
|
-
*/
|
|
848
|
-
parentAccountId?: string | null;
|
|
849
|
-
/**
|
|
850
|
-
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
851
|
-
* @format GUID
|
|
852
|
-
*/
|
|
853
|
-
siteId?: string | null;
|
|
854
|
-
}
|
|
855
|
-
interface GenerateTokenForProjectItemsRequest {
|
|
856
|
-
/**
|
|
857
|
-
* Media ids of requested project items
|
|
858
|
-
* @minSize 1
|
|
859
|
-
* @maxLength 100
|
|
860
|
-
*/
|
|
861
|
-
mediaIds: string[];
|
|
862
|
-
}
|
|
863
|
-
interface GenerateTokenForProjectItemsResponse {
|
|
864
|
-
/** Generated media tokens for project items */
|
|
865
|
-
mediaTokens?: ProjectItemMediaToken[];
|
|
866
|
-
}
|
|
867
|
-
interface ProjectItemMediaToken {
|
|
868
|
-
/** Media id of project item */
|
|
869
|
-
mediaId?: string;
|
|
870
|
-
/** Generated media token for project item */
|
|
871
|
-
mediaToken?: string;
|
|
872
|
-
}
|
|
873
884
|
|
|
874
885
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
875
886
|
getUrl: (context: any) => string;
|
|
@@ -881,6 +892,7 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
881
892
|
__responseType: Q;
|
|
882
893
|
__originalResponseType: R;
|
|
883
894
|
};
|
|
895
|
+
declare function generateTokenForProjectItems(): __PublicMethodMetaInfo<'POST', {}, GenerateTokenForProjectItemsRequest$1, GenerateTokenForProjectItemsRequest, GenerateTokenForProjectItemsResponse$1, GenerateTokenForProjectItemsResponse>;
|
|
884
896
|
declare function createProjectItem(): __PublicMethodMetaInfo<'POST', {}, CreateProjectItemRequest$1, CreateProjectItemRequest, CreateProjectItemResponse$1, CreateProjectItemResponse>;
|
|
885
897
|
declare function bulkCreateProjectItems(): __PublicMethodMetaInfo<'POST', {}, BulkCreateProjectItemsRequest$1, BulkCreateProjectItemsRequest, BulkCreateProjectItemsResponse$1, BulkCreateProjectItemsResponse>;
|
|
886
898
|
declare function getProjectItem(): __PublicMethodMetaInfo<'GET', {
|
|
@@ -898,6 +910,5 @@ declare function deleteProjectItem(): __PublicMethodMetaInfo<'DELETE', {
|
|
|
898
910
|
}, DeleteProjectItemRequest$1, DeleteProjectItemRequest, DeleteProjectItemResponse$1, DeleteProjectItemResponse>;
|
|
899
911
|
declare function bulkDeleteProjectItems(): __PublicMethodMetaInfo<'DELETE', {}, BulkDeleteProjectItemsRequest$1, BulkDeleteProjectItemsRequest, BulkDeleteProjectItemsResponse$1, BulkDeleteProjectItemsResponse>;
|
|
900
912
|
declare function duplicateProjectItems(): __PublicMethodMetaInfo<'POST', {}, DuplicateProjectItemsRequest$1, DuplicateProjectItemsRequest, DuplicateProjectItemsResponse$1, DuplicateProjectItemsResponse>;
|
|
901
|
-
declare function generateTokenForProjectItems(): __PublicMethodMetaInfo<'POST', {}, GenerateTokenForProjectItemsRequest$1, GenerateTokenForProjectItemsRequest, GenerateTokenForProjectItemsResponse$1, GenerateTokenForProjectItemsResponse>;
|
|
902
913
|
|
|
903
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type App as AppOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateProjectItemResult as BulkCreateProjectItemResultOriginal, type BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequestOriginal, type BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponseOriginal, type BulkDeleteProjectItemResult as BulkDeleteProjectItemResultOriginal, type BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequestOriginal, type BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponseOriginal, type BulkUpdateProjectItemResult as BulkUpdateProjectItemResultOriginal, type BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequestOriginal, type BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponseOriginal, type CommonImage as CommonImageOriginal, type CreateProjectGalleryRequest as CreateProjectGalleryRequestOriginal, type CreateProjectGalleryResponse as CreateProjectGalleryResponseOriginal, type CreateProjectItemRequest as CreateProjectItemRequestOriginal, type CreateProjectItemResponse as CreateProjectItemResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomTag as CustomTagOriginal, type DeleteProjectItemRequest as DeleteProjectItemRequestOriginal, type DeleteProjectItemResponse as DeleteProjectItemResponseOriginal, type DeletedProjectRestored as DeletedProjectRestoredOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DuplicateProjectItemsRequest as DuplicateProjectItemsRequestOriginal, type DuplicateProjectItemsResponse as DuplicateProjectItemsResponseOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type File as FileOriginal, type GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequestOriginal, type GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponseOriginal, type GetProjectItemRequest as GetProjectItemRequestOriginal, type GetProjectItemResponse as GetProjectItemResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, ImageType as ImageTypeOriginal, type ImageTypeWithLiterals as ImageTypeWithLiteralsOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ItemMetadataOneOf as ItemMetadataOneOfOriginal, type ItemMetadata as ItemMetadataOriginal, type Item as ItemOriginal, type Link as LinkOriginal, type ListProjectItemsRequest as ListProjectItemsRequestOriginal, type ListProjectItemsResponse as ListProjectItemsResponseOriginal, type MaskedItem as MaskedItemOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type Point as PointOriginal, type ProjectItemMediaToken as ProjectItemMediaTokenOriginal, type QueryProjectItemsRequest as QueryProjectItemsRequestOriginal, type QueryProjectItemsResponse as QueryProjectItemsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type Tags as TagsOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UnsharpMasking as UnsharpMaskingOriginal, type UpdateProjectItemRequest as UpdateProjectItemRequestOriginal, type UpdateProjectItemResponse as UpdateProjectItemResponseOriginal, type Video as VideoOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateProjectItems, bulkDeleteProjectItems, bulkUpdateProjectItems, createProjectItem, deleteProjectItem, duplicateProjectItems, generateTokenForProjectItems, getProjectItem, listProjectItems, updateProjectItem };
|
|
914
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLocation as AddressLocationOriginal, type App as AppOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateProjectItemResult as BulkCreateProjectItemResultOriginal, type BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequestOriginal, type BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponseOriginal, type BulkDeleteProjectItemResult as BulkDeleteProjectItemResultOriginal, type BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequestOriginal, type BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponseOriginal, type BulkUpdateProjectItemResult as BulkUpdateProjectItemResultOriginal, type BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequestOriginal, type BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponseOriginal, type CommonImage as CommonImageOriginal, type CreateProjectGalleryRequest as CreateProjectGalleryRequestOriginal, type CreateProjectGalleryResponse as CreateProjectGalleryResponseOriginal, type CreateProjectItemRequest as CreateProjectItemRequestOriginal, type CreateProjectItemResponse as CreateProjectItemResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomTag as CustomTagOriginal, type DeleteProjectItemRequest as DeleteProjectItemRequestOriginal, type DeleteProjectItemResponse as DeleteProjectItemResponseOriginal, type DeletedProjectRestored as DeletedProjectRestoredOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DuplicateProjectItemsRequest as DuplicateProjectItemsRequestOriginal, type DuplicateProjectItemsResponse as DuplicateProjectItemsResponseOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type File as FileOriginal, type GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequestOriginal, type GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponseOriginal, type GetProjectItemRequest as GetProjectItemRequestOriginal, type GetProjectItemResponse as GetProjectItemResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, ImageType as ImageTypeOriginal, type ImageTypeWithLiterals as ImageTypeWithLiteralsOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ItemMetadataOneOf as ItemMetadataOneOfOriginal, type ItemMetadata as ItemMetadataOriginal, type Item as ItemOriginal, type Link as LinkOriginal, type ListProjectItemsRequest as ListProjectItemsRequestOriginal, type ListProjectItemsResponse as ListProjectItemsResponseOriginal, type MaskedItem as MaskedItemOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type Point as PointOriginal, type ProjectItemMediaToken as ProjectItemMediaTokenOriginal, type QueryProjectItemsRequest as QueryProjectItemsRequestOriginal, type QueryProjectItemsResponse as QueryProjectItemsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type Tags as TagsOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UnsharpMasking as UnsharpMaskingOriginal, type UpdateProjectItemRequest as UpdateProjectItemRequestOriginal, type UpdateProjectItemResponse as UpdateProjectItemResponseOriginal, type Video as VideoOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateProjectItems, bulkDeleteProjectItems, bulkUpdateProjectItems, createProjectItem, deleteProjectItem, duplicateProjectItems, generateTokenForProjectItems, getProjectItem, listProjectItems, updateProjectItem };
|
|
@@ -46,71 +46,6 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
46
46
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
47
47
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
48
48
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
49
|
-
function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
|
|
50
|
-
const domainToMappings = {
|
|
51
|
-
"manage._base_domain_": [
|
|
52
|
-
{
|
|
53
|
-
srcPath: "/_api/portfolio-app-service",
|
|
54
|
-
destPath: "/api"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"editor._base_domain_": [
|
|
58
|
-
{
|
|
59
|
-
srcPath: "/_api/portfolio-app-service",
|
|
60
|
-
destPath: "/api"
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
"blocks._base_domain_": [
|
|
64
|
-
{
|
|
65
|
-
srcPath: "/_api/portfolio-app-service",
|
|
66
|
-
destPath: "/api"
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"create.editorx": [
|
|
70
|
-
{
|
|
71
|
-
srcPath: "/_api/portfolio-app-service",
|
|
72
|
-
destPath: "/api"
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
_: [
|
|
76
|
-
{
|
|
77
|
-
srcPath: "/_api/portfolio-app-service",
|
|
78
|
-
destPath: "/api"
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
"api._api_base_domain_": [
|
|
82
|
-
{
|
|
83
|
-
srcPath: "/_api/portfolio-app-service",
|
|
84
|
-
destPath: "/api"
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"www.wixapis.com": [
|
|
88
|
-
{
|
|
89
|
-
srcPath: "/portfolio/v1/settings",
|
|
90
|
-
destPath: "/api/v1/portfolio/settings"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
94
|
-
destPath: "/api/v1/portfolio/settings"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
98
|
-
destPath: "/api/v1/portfolio/project/items/media"
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"*.dev.wix-code.com": [
|
|
102
|
-
{
|
|
103
|
-
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
104
|
-
destPath: "/api/v1/portfolio/settings"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
108
|
-
destPath: "/api/v1/portfolio/project/items/media"
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
};
|
|
112
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
113
|
-
}
|
|
114
49
|
function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
|
|
115
50
|
const domainToMappings = {
|
|
116
51
|
"manage._base_domain_": [
|
|
@@ -230,7 +165,93 @@ function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
|
|
|
230
165
|
};
|
|
231
166
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
232
167
|
}
|
|
168
|
+
function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
|
|
169
|
+
const domainToMappings = {
|
|
170
|
+
"manage._base_domain_": [
|
|
171
|
+
{
|
|
172
|
+
srcPath: "/_api/portfolio-app-service",
|
|
173
|
+
destPath: "/api"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"editor._base_domain_": [
|
|
177
|
+
{
|
|
178
|
+
srcPath: "/_api/portfolio-app-service",
|
|
179
|
+
destPath: "/api"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"blocks._base_domain_": [
|
|
183
|
+
{
|
|
184
|
+
srcPath: "/_api/portfolio-app-service",
|
|
185
|
+
destPath: "/api"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"create.editorx": [
|
|
189
|
+
{
|
|
190
|
+
srcPath: "/_api/portfolio-app-service",
|
|
191
|
+
destPath: "/api"
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
_: [
|
|
195
|
+
{
|
|
196
|
+
srcPath: "/_api/portfolio-app-service",
|
|
197
|
+
destPath: "/api"
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"api._api_base_domain_": [
|
|
201
|
+
{
|
|
202
|
+
srcPath: "/_api/portfolio-app-service",
|
|
203
|
+
destPath: "/api"
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"www.wixapis.com": [
|
|
207
|
+
{
|
|
208
|
+
srcPath: "/portfolio/v1/settings",
|
|
209
|
+
destPath: "/api/v1/portfolio/settings"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
213
|
+
destPath: "/api/v1/portfolio/settings"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
217
|
+
destPath: "/api/v1/portfolio/project/items/media"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"*.dev.wix-code.com": [
|
|
221
|
+
{
|
|
222
|
+
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
223
|
+
destPath: "/api/v1/portfolio/settings"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
227
|
+
destPath: "/api/v1/portfolio/project/items/media"
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
};
|
|
231
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
232
|
+
}
|
|
233
233
|
var PACKAGE_NAME = "@wix/auto_sdk_portfolio_project-items";
|
|
234
|
+
function generateTokenForProjectItems(payload) {
|
|
235
|
+
function __generateTokenForProjectItems({ host }) {
|
|
236
|
+
const metadata = {
|
|
237
|
+
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
238
|
+
method: "POST",
|
|
239
|
+
methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
|
|
240
|
+
packageName: PACKAGE_NAME,
|
|
241
|
+
migrationOptions: {
|
|
242
|
+
optInTransformResponse: true
|
|
243
|
+
},
|
|
244
|
+
url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
|
|
245
|
+
protoPath: "/api/v1/portfolio/project/items/media",
|
|
246
|
+
data: payload,
|
|
247
|
+
host
|
|
248
|
+
}),
|
|
249
|
+
data: payload
|
|
250
|
+
};
|
|
251
|
+
return metadata;
|
|
252
|
+
}
|
|
253
|
+
return __generateTokenForProjectItems;
|
|
254
|
+
}
|
|
234
255
|
function createProjectItem(payload) {
|
|
235
256
|
function __createProjectItem({ host }) {
|
|
236
257
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -699,27 +720,6 @@ function duplicateProjectItems(payload) {
|
|
|
699
720
|
}
|
|
700
721
|
return __duplicateProjectItems;
|
|
701
722
|
}
|
|
702
|
-
function generateTokenForProjectItems(payload) {
|
|
703
|
-
function __generateTokenForProjectItems({ host }) {
|
|
704
|
-
const metadata = {
|
|
705
|
-
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
706
|
-
method: "POST",
|
|
707
|
-
methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
|
|
708
|
-
packageName: PACKAGE_NAME,
|
|
709
|
-
migrationOptions: {
|
|
710
|
-
optInTransformResponse: true
|
|
711
|
-
},
|
|
712
|
-
url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
|
|
713
|
-
protoPath: "/api/v1/portfolio/project/items/media",
|
|
714
|
-
data: payload,
|
|
715
|
-
host
|
|
716
|
-
}),
|
|
717
|
-
data: payload
|
|
718
|
-
};
|
|
719
|
-
return metadata;
|
|
720
|
-
}
|
|
721
|
-
return __generateTokenForProjectItems;
|
|
722
|
-
}
|
|
723
723
|
|
|
724
724
|
// src/portfolio-project-items-v1-project-item-project-items.types.ts
|
|
725
725
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
@@ -734,11 +734,6 @@ var ImageType = /* @__PURE__ */ ((ImageType2) => {
|
|
|
734
734
|
ImageType2["EXTERNAL"] = "EXTERNAL";
|
|
735
735
|
return ImageType2;
|
|
736
736
|
})(ImageType || {});
|
|
737
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
738
|
-
SortOrder2["ASC"] = "ASC";
|
|
739
|
-
SortOrder2["DESC"] = "DESC";
|
|
740
|
-
return SortOrder2;
|
|
741
|
-
})(SortOrder || {});
|
|
742
737
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
743
738
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
744
739
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -747,8 +742,33 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
747
742
|
WebhookIdentityType2["APP"] = "APP";
|
|
748
743
|
return WebhookIdentityType2;
|
|
749
744
|
})(WebhookIdentityType || {});
|
|
745
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
746
|
+
SortOrder2["ASC"] = "ASC";
|
|
747
|
+
SortOrder2["DESC"] = "DESC";
|
|
748
|
+
return SortOrder2;
|
|
749
|
+
})(SortOrder || {});
|
|
750
750
|
|
|
751
751
|
// src/portfolio-project-items-v1-project-item-project-items.meta.ts
|
|
752
|
+
function generateTokenForProjectItems2() {
|
|
753
|
+
const payload = {};
|
|
754
|
+
const getRequestOptions = generateTokenForProjectItems(
|
|
755
|
+
payload
|
|
756
|
+
);
|
|
757
|
+
const getUrl = (context) => {
|
|
758
|
+
const { url } = getRequestOptions(context);
|
|
759
|
+
return url;
|
|
760
|
+
};
|
|
761
|
+
return {
|
|
762
|
+
getUrl,
|
|
763
|
+
httpMethod: "POST",
|
|
764
|
+
path: "/api/v1/portfolio/project/items/media",
|
|
765
|
+
pathParams: {},
|
|
766
|
+
__requestType: null,
|
|
767
|
+
__originalRequestType: null,
|
|
768
|
+
__responseType: null,
|
|
769
|
+
__originalResponseType: null
|
|
770
|
+
};
|
|
771
|
+
}
|
|
752
772
|
function createProjectItem2() {
|
|
753
773
|
const payload = {};
|
|
754
774
|
const getRequestOptions = createProjectItem(payload);
|
|
@@ -919,26 +939,6 @@ function duplicateProjectItems2() {
|
|
|
919
939
|
__originalResponseType: null
|
|
920
940
|
};
|
|
921
941
|
}
|
|
922
|
-
function generateTokenForProjectItems2() {
|
|
923
|
-
const payload = {};
|
|
924
|
-
const getRequestOptions = generateTokenForProjectItems(
|
|
925
|
-
payload
|
|
926
|
-
);
|
|
927
|
-
const getUrl = (context) => {
|
|
928
|
-
const { url } = getRequestOptions(context);
|
|
929
|
-
return url;
|
|
930
|
-
};
|
|
931
|
-
return {
|
|
932
|
-
getUrl,
|
|
933
|
-
httpMethod: "POST",
|
|
934
|
-
path: "/api/v1/portfolio/project/items/media",
|
|
935
|
-
pathParams: {},
|
|
936
|
-
__requestType: null,
|
|
937
|
-
__originalRequestType: null,
|
|
938
|
-
__responseType: null,
|
|
939
|
-
__originalResponseType: null
|
|
940
|
-
};
|
|
941
|
-
}
|
|
942
942
|
// Annotate the CommonJS export names for ESM import in node:
|
|
943
943
|
0 && (module.exports = {
|
|
944
944
|
ImageTypeOriginal,
|