@wix/auto_sdk_portfolio_synced-project 1.0.13 → 1.0.15

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.
Files changed (134) hide show
  1. package/build/index.d.mts +49 -0
  2. package/build/index.d.ts +49 -0
  3. package/build/index.js +471 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +437 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +49 -0
  8. package/build/internal/index.d.ts +49 -0
  9. package/build/internal/index.js +471 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +437 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +176 -0
  14. package/build/internal/meta.d.ts +176 -0
  15. package/build/internal/meta.js +290 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +259 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/{cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.types.d.ts → internal/portfolio-syncedprojects-v1-synced-project-synced-project.universal-Bnf15fH5.d.mts} +102 -80
  20. package/build/internal/{cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.types.d.ts → portfolio-syncedprojects-v1-synced-project-synced-project.universal-Bnf15fH5.d.ts} +102 -80
  21. package/build/meta.d.mts +176 -0
  22. package/build/meta.d.ts +176 -0
  23. package/build/meta.js +290 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +259 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.types.d.ts → portfolio-syncedprojects-v1-synced-project-synced-project.universal-Bnf15fH5.d.mts} +102 -80
  28. package/build/{es/src/portfolio-syncedprojects-v1-synced-project-synced-project.types.d.ts → portfolio-syncedprojects-v1-synced-project-synced-project.universal-Bnf15fH5.d.ts} +102 -80
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.context.d.ts +0 -9
  40. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.context.js +0 -18
  41. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.context.js.map +0 -1
  42. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.http.d.ts +0 -11
  43. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.http.js +0 -160
  44. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.http.js.map +0 -1
  45. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.d.ts +0 -28
  46. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.js +0 -123
  47. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.js.map +0 -1
  48. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.public.d.ts +0 -43
  49. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.public.js +0 -43
  50. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.public.js.map +0 -1
  51. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.types.js +0 -137
  52. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.types.js.map +0 -1
  53. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.universal.d.ts +0 -928
  54. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.universal.js +0 -357
  55. package/build/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.context.d.ts +0 -9
  67. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.context.js +0 -9
  68. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.context.js.map +0 -1
  69. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.http.d.ts +0 -11
  70. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.http.js +0 -152
  71. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.http.js.map +0 -1
  72. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.d.ts +0 -28
  73. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.js +0 -92
  74. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.js.map +0 -1
  75. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.public.d.ts +0 -43
  76. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.public.js +0 -29
  77. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.public.js.map +0 -1
  78. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.types.js +0 -134
  79. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.types.js.map +0 -1
  80. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.universal.d.ts +0 -928
  81. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.universal.js +0 -326
  82. package/build/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.context.d.ts +0 -9
  93. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.context.js +0 -18
  94. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.context.js.map +0 -1
  95. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.http.d.ts +0 -11
  96. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.http.js +0 -160
  97. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.http.js.map +0 -1
  98. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.d.ts +0 -28
  99. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.js +0 -123
  100. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.js.map +0 -1
  101. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.public.d.ts +0 -43
  102. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.public.js +0 -43
  103. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.public.js.map +0 -1
  104. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.types.js +0 -137
  105. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.types.js.map +0 -1
  106. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.universal.d.ts +0 -928
  107. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.universal.js +0 -357
  108. package/build/internal/cjs/src/portfolio-syncedprojects-v1-synced-project-synced-project.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.context.d.ts +0 -9
  119. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.context.js +0 -9
  120. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.context.js.map +0 -1
  121. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.http.d.ts +0 -11
  122. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.http.js +0 -152
  123. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.http.js.map +0 -1
  124. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.d.ts +0 -28
  125. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.js +0 -92
  126. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.js.map +0 -1
  127. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.public.d.ts +0 -43
  128. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.public.js +0 -29
  129. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.public.js.map +0 -1
  130. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.types.js +0 -134
  131. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.types.js.map +0 -1
  132. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.universal.d.ts +0 -928
  133. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.universal.js +0 -326
  134. package/build/internal/es/src/portfolio-syncedprojects-v1-synced-project-synced-project.universal.js.map +0 -1
@@ -0,0 +1,49 @@
1
+ import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { G as GetProjectsOptions, a as GetProjectsResponse, S as SyncProjectIdentifiers, b as SyncProjectResponse, c as GetSyncStatusIdentifiers, d as GetSyncStatusResponse, e as StopSyncIdentifiers, f as StopSyncResponse, g as GetLoginRedirectableUrlResponse } from './portfolio-syncedprojects-v1-synced-project-synced-project.universal-Bnf15fH5.mjs';
3
+ export { A as ActionEvent, O as Asset, C as CursorPaging, q as Cursors, V as DeleteContext, D as DeleteStatus, u as DomainEvent, v as DomainEventBodyOneOf, y as Empty, E as EntityCreatedEvent, x as EntityDeletedEvent, w as EntityUpdatedEvent, t as GetLoginRedirectableUrlRequest, p as GetProjectsRequest, r as GetSyncStatusRequest, af as IdentificationData, ag as IdentificationDataIdOneOf, I as ItemCreatedMediaCallbackRequest, F as ItemCreatedMediaCallbackResponse, M as MediaFileOutput, B as MediaImageOutput, z as MediaVideoOutput, ae as MessageEnvelope, K as MetaSiteSpecialEvent, L as MetaSiteSpecialEventPayloadOneOf, N as Namespace, a4 as NamespaceChanged, a9 as OdeditorAssigned, aa as OdeditorUnassigned, P as PagingMetadataV2, ab as PicassoAssigned, ac as PicassoUnassigned, H as ProjectCoverImageCreatedMediaCallbackRequest, J as ProjectCoverImageCreatedMediaCallbackResponse, R as RestoreInfo, a0 as ServiceProvisioned, a1 as ServiceRemoved, Q as SiteCreated, j as SiteCreatedContext, U as SiteDeleted, a3 as SiteHardDeleted, _ as SiteMarkedAsTemplate, $ as SiteMarkedAsWixSite, Y as SitePublished, a8 as SitePurgedExternally, a2 as SiteRenamed, T as SiteTransferred, X as SiteUndeleted, Z as SiteUnpublished, a7 as SiteUrlChanged, i as State, s as StopSyncRequest, a5 as StudioAssigned, a6 as StudioUnassigned, ad as SyncAllSitesEvent, m as SyncProjectPagingEvent, o as SyncProjectRequest, n as SyncSiteEvent, h as SyncStatus, k as SyncedProject, l as SyncingProjectEvent, W as WebhookIdentityType } from './portfolio-syncedprojects-v1-synced-project-synced-project.universal-Bnf15fH5.mjs';
4
+
5
+ declare function getProjects$1(httpClient: HttpClient): GetProjectsSignature;
6
+ interface GetProjectsSignature {
7
+ /**
8
+ * Get projects per app
9
+ * @param - Provider appDefId
10
+ */
11
+ (appDefId: string, options?: GetProjectsOptions | undefined): Promise<GetProjectsResponse>;
12
+ }
13
+ declare function syncProject$1(httpClient: HttpClient): SyncProjectSignature;
14
+ interface SyncProjectSignature {
15
+ /**
16
+ * Async Sync project
17
+ */
18
+ (identifiers: SyncProjectIdentifiers): Promise<SyncProjectResponse>;
19
+ }
20
+ declare function getSyncStatus$1(httpClient: HttpClient): GetSyncStatusSignature;
21
+ interface GetSyncStatusSignature {
22
+ /**
23
+ * Get sync status (when was last synced and etc..)
24
+ */
25
+ (identifiers: GetSyncStatusIdentifiers): Promise<GetSyncStatusResponse>;
26
+ }
27
+ declare function stopSync$1(httpClient: HttpClient): StopSyncSignature;
28
+ interface StopSyncSignature {
29
+ /**
30
+ * Stop sync project
31
+ */
32
+ (identifiers: StopSyncIdentifiers): Promise<StopSyncResponse>;
33
+ }
34
+ declare function getLoginRedirectableUrl$1(httpClient: HttpClient): GetLoginRedirectableUrlSignature;
35
+ interface GetLoginRedirectableUrlSignature {
36
+ /**
37
+ * Get login redirectable url
38
+ * @param - Provider appDefId
39
+ */
40
+ (appDefId: string): Promise<GetLoginRedirectableUrlResponse>;
41
+ }
42
+
43
+ declare const getProjects: MaybeContext<BuildRESTFunction<typeof getProjects$1> & typeof getProjects$1>;
44
+ declare const syncProject: MaybeContext<BuildRESTFunction<typeof syncProject$1> & typeof syncProject$1>;
45
+ declare const getSyncStatus: MaybeContext<BuildRESTFunction<typeof getSyncStatus$1> & typeof getSyncStatus$1>;
46
+ declare const stopSync: MaybeContext<BuildRESTFunction<typeof stopSync$1> & typeof stopSync$1>;
47
+ declare const getLoginRedirectableUrl: MaybeContext<BuildRESTFunction<typeof getLoginRedirectableUrl$1> & typeof getLoginRedirectableUrl$1>;
48
+
49
+ export { GetLoginRedirectableUrlResponse, GetProjectsOptions, GetProjectsResponse, GetSyncStatusIdentifiers, GetSyncStatusResponse, StopSyncIdentifiers, StopSyncResponse, SyncProjectIdentifiers, SyncProjectResponse, getLoginRedirectableUrl, getProjects, getSyncStatus, stopSync, syncProject };
@@ -0,0 +1,49 @@
1
+ import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { G as GetProjectsOptions, a as GetProjectsResponse, S as SyncProjectIdentifiers, b as SyncProjectResponse, c as GetSyncStatusIdentifiers, d as GetSyncStatusResponse, e as StopSyncIdentifiers, f as StopSyncResponse, g as GetLoginRedirectableUrlResponse } from './portfolio-syncedprojects-v1-synced-project-synced-project.universal-Bnf15fH5.js';
3
+ export { A as ActionEvent, O as Asset, C as CursorPaging, q as Cursors, V as DeleteContext, D as DeleteStatus, u as DomainEvent, v as DomainEventBodyOneOf, y as Empty, E as EntityCreatedEvent, x as EntityDeletedEvent, w as EntityUpdatedEvent, t as GetLoginRedirectableUrlRequest, p as GetProjectsRequest, r as GetSyncStatusRequest, af as IdentificationData, ag as IdentificationDataIdOneOf, I as ItemCreatedMediaCallbackRequest, F as ItemCreatedMediaCallbackResponse, M as MediaFileOutput, B as MediaImageOutput, z as MediaVideoOutput, ae as MessageEnvelope, K as MetaSiteSpecialEvent, L as MetaSiteSpecialEventPayloadOneOf, N as Namespace, a4 as NamespaceChanged, a9 as OdeditorAssigned, aa as OdeditorUnassigned, P as PagingMetadataV2, ab as PicassoAssigned, ac as PicassoUnassigned, H as ProjectCoverImageCreatedMediaCallbackRequest, J as ProjectCoverImageCreatedMediaCallbackResponse, R as RestoreInfo, a0 as ServiceProvisioned, a1 as ServiceRemoved, Q as SiteCreated, j as SiteCreatedContext, U as SiteDeleted, a3 as SiteHardDeleted, _ as SiteMarkedAsTemplate, $ as SiteMarkedAsWixSite, Y as SitePublished, a8 as SitePurgedExternally, a2 as SiteRenamed, T as SiteTransferred, X as SiteUndeleted, Z as SiteUnpublished, a7 as SiteUrlChanged, i as State, s as StopSyncRequest, a5 as StudioAssigned, a6 as StudioUnassigned, ad as SyncAllSitesEvent, m as SyncProjectPagingEvent, o as SyncProjectRequest, n as SyncSiteEvent, h as SyncStatus, k as SyncedProject, l as SyncingProjectEvent, W as WebhookIdentityType } from './portfolio-syncedprojects-v1-synced-project-synced-project.universal-Bnf15fH5.js';
4
+
5
+ declare function getProjects$1(httpClient: HttpClient): GetProjectsSignature;
6
+ interface GetProjectsSignature {
7
+ /**
8
+ * Get projects per app
9
+ * @param - Provider appDefId
10
+ */
11
+ (appDefId: string, options?: GetProjectsOptions | undefined): Promise<GetProjectsResponse>;
12
+ }
13
+ declare function syncProject$1(httpClient: HttpClient): SyncProjectSignature;
14
+ interface SyncProjectSignature {
15
+ /**
16
+ * Async Sync project
17
+ */
18
+ (identifiers: SyncProjectIdentifiers): Promise<SyncProjectResponse>;
19
+ }
20
+ declare function getSyncStatus$1(httpClient: HttpClient): GetSyncStatusSignature;
21
+ interface GetSyncStatusSignature {
22
+ /**
23
+ * Get sync status (when was last synced and etc..)
24
+ */
25
+ (identifiers: GetSyncStatusIdentifiers): Promise<GetSyncStatusResponse>;
26
+ }
27
+ declare function stopSync$1(httpClient: HttpClient): StopSyncSignature;
28
+ interface StopSyncSignature {
29
+ /**
30
+ * Stop sync project
31
+ */
32
+ (identifiers: StopSyncIdentifiers): Promise<StopSyncResponse>;
33
+ }
34
+ declare function getLoginRedirectableUrl$1(httpClient: HttpClient): GetLoginRedirectableUrlSignature;
35
+ interface GetLoginRedirectableUrlSignature {
36
+ /**
37
+ * Get login redirectable url
38
+ * @param - Provider appDefId
39
+ */
40
+ (appDefId: string): Promise<GetLoginRedirectableUrlResponse>;
41
+ }
42
+
43
+ declare const getProjects: MaybeContext<BuildRESTFunction<typeof getProjects$1> & typeof getProjects$1>;
44
+ declare const syncProject: MaybeContext<BuildRESTFunction<typeof syncProject$1> & typeof syncProject$1>;
45
+ declare const getSyncStatus: MaybeContext<BuildRESTFunction<typeof getSyncStatus$1> & typeof getSyncStatus$1>;
46
+ declare const stopSync: MaybeContext<BuildRESTFunction<typeof stopSync$1> & typeof stopSync$1>;
47
+ declare const getLoginRedirectableUrl: MaybeContext<BuildRESTFunction<typeof getLoginRedirectableUrl$1> & typeof getLoginRedirectableUrl$1>;
48
+
49
+ export { GetLoginRedirectableUrlResponse, GetProjectsOptions, GetProjectsResponse, GetSyncStatusIdentifiers, GetSyncStatusResponse, StopSyncIdentifiers, StopSyncResponse, SyncProjectIdentifiers, SyncProjectResponse, getLoginRedirectableUrl, getProjects, getSyncStatus, stopSync, syncProject };
package/build/index.js ADDED
@@ -0,0 +1,471 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ DeleteStatus: () => DeleteStatus,
24
+ Namespace: () => Namespace,
25
+ SiteCreatedContext: () => SiteCreatedContext,
26
+ State: () => State,
27
+ SyncStatus: () => SyncStatus,
28
+ WebhookIdentityType: () => WebhookIdentityType,
29
+ getLoginRedirectableUrl: () => getLoginRedirectableUrl4,
30
+ getProjects: () => getProjects4,
31
+ getSyncStatus: () => getSyncStatus4,
32
+ stopSync: () => stopSync4,
33
+ syncProject: () => syncProject4
34
+ });
35
+ module.exports = __toCommonJS(index_exports);
36
+
37
+ // src/portfolio-syncedprojects-v1-synced-project-synced-project.universal.ts
38
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
39
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
40
+
41
+ // src/portfolio-syncedprojects-v1-synced-project-synced-project.http.ts
42
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
43
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
44
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
45
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
46
+ function resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(opts) {
47
+ const domainToMappings = {
48
+ "editor._base_domain_": [
49
+ {
50
+ srcPath: "/_api/synced-projects-service",
51
+ destPath: ""
52
+ }
53
+ ],
54
+ "blocks._base_domain_": [
55
+ {
56
+ srcPath: "/_api/synced-projects-service",
57
+ destPath: ""
58
+ }
59
+ ],
60
+ "create.editorx": [
61
+ {
62
+ srcPath: "/_api/synced-projects-service",
63
+ destPath: ""
64
+ }
65
+ ],
66
+ "manage._base_domain_": [
67
+ {
68
+ srcPath: "/_api/synced-projects-service",
69
+ destPath: ""
70
+ }
71
+ ],
72
+ "www.wixapis.com": [
73
+ {
74
+ srcPath: "/portfolio/syncedprojects/v1/projects/login/url",
75
+ destPath: "/v1/projects/login/url"
76
+ }
77
+ ],
78
+ "*.dev.wix-code.com": [
79
+ {
80
+ srcPath: "/portfolio/syncedprojects/v1/projects/login/url",
81
+ destPath: "/v1/projects/login/url"
82
+ }
83
+ ],
84
+ _: [
85
+ {
86
+ srcPath: "/portfolio/syncedprojects/v1/projects/login/url",
87
+ destPath: "/v1/projects/login/url"
88
+ }
89
+ ]
90
+ };
91
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
92
+ }
93
+ var PACKAGE_NAME = "@wix/auto_sdk_portfolio_synced-project";
94
+ function getProjects(payload) {
95
+ function __getProjects({ host }) {
96
+ const metadata = {
97
+ entityFqdn: "wix.portfolio.syncedprojects.v1.synced_project",
98
+ method: "GET",
99
+ methodFqn: "com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.GetProjects",
100
+ packageName: PACKAGE_NAME,
101
+ url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(
102
+ { protoPath: "/v1/projects/{appDefId}", data: payload, host }
103
+ ),
104
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
105
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
106
+ {
107
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
108
+ paths: [{ path: "projects.lastSynced" }]
109
+ }
110
+ ])
111
+ };
112
+ return metadata;
113
+ }
114
+ return __getProjects;
115
+ }
116
+ function syncProject(payload) {
117
+ function __syncProject({ host }) {
118
+ const metadata = {
119
+ entityFqdn: "wix.portfolio.syncedprojects.v1.synced_project",
120
+ method: "POST",
121
+ methodFqn: "com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.SyncProject",
122
+ packageName: PACKAGE_NAME,
123
+ url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(
124
+ {
125
+ protoPath: "/v1/projects/{appDefId}/sync/{externalId}",
126
+ data: payload,
127
+ host
128
+ }
129
+ ),
130
+ data: payload,
131
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
132
+ {
133
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
134
+ paths: [{ path: "project.lastSynced" }]
135
+ }
136
+ ])
137
+ };
138
+ return metadata;
139
+ }
140
+ return __syncProject;
141
+ }
142
+ function getSyncStatus(payload) {
143
+ function __getSyncStatus({ host }) {
144
+ const metadata = {
145
+ entityFqdn: "wix.portfolio.syncedprojects.v1.synced_project",
146
+ method: "GET",
147
+ methodFqn: "com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.GetSyncStatus",
148
+ packageName: PACKAGE_NAME,
149
+ url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(
150
+ {
151
+ protoPath: "/v1/projects/{appDefId}/sync/{externalId}/status",
152
+ data: payload,
153
+ host
154
+ }
155
+ ),
156
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
157
+ };
158
+ return metadata;
159
+ }
160
+ return __getSyncStatus;
161
+ }
162
+ function stopSync(payload) {
163
+ function __stopSync({ host }) {
164
+ const metadata = {
165
+ entityFqdn: "wix.portfolio.syncedprojects.v1.synced_project",
166
+ method: "POST",
167
+ methodFqn: "com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.StopSync",
168
+ packageName: PACKAGE_NAME,
169
+ url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(
170
+ {
171
+ protoPath: "/v1/projects/{appDefId}/sync/{externalId}/stop",
172
+ data: payload,
173
+ host
174
+ }
175
+ ),
176
+ data: payload
177
+ };
178
+ return metadata;
179
+ }
180
+ return __stopSync;
181
+ }
182
+ function getLoginRedirectableUrl(payload) {
183
+ function __getLoginRedirectableUrl({ host }) {
184
+ const metadata = {
185
+ entityFqdn: "wix.portfolio.syncedprojects.v1.synced_project",
186
+ method: "POST",
187
+ methodFqn: "com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.GetLoginRedirectableUrl",
188
+ packageName: PACKAGE_NAME,
189
+ url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(
190
+ { protoPath: "/v1/projects/login/url", data: payload, host }
191
+ ),
192
+ data: payload
193
+ };
194
+ return metadata;
195
+ }
196
+ return __getLoginRedirectableUrl;
197
+ }
198
+
199
+ // src/portfolio-syncedprojects-v1-synced-project-synced-project.universal.ts
200
+ var SyncStatus = /* @__PURE__ */ ((SyncStatus2) => {
201
+ SyncStatus2["NOT_SYNCED"] = "NOT_SYNCED";
202
+ SyncStatus2["PENDING"] = "PENDING";
203
+ SyncStatus2["SYNCING"] = "SYNCING";
204
+ SyncStatus2["SYNCED"] = "SYNCED";
205
+ return SyncStatus2;
206
+ })(SyncStatus || {});
207
+ var State = /* @__PURE__ */ ((State2) => {
208
+ State2["UNKNOWN"] = "UNKNOWN";
209
+ State2["ENABLED"] = "ENABLED";
210
+ State2["DISABLED"] = "DISABLED";
211
+ State2["PENDING"] = "PENDING";
212
+ State2["DEMO"] = "DEMO";
213
+ return State2;
214
+ })(State || {});
215
+ var SiteCreatedContext = /* @__PURE__ */ ((SiteCreatedContext2) => {
216
+ SiteCreatedContext2["OTHER"] = "OTHER";
217
+ SiteCreatedContext2["FROM_TEMPLATE"] = "FROM_TEMPLATE";
218
+ SiteCreatedContext2["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
219
+ SiteCreatedContext2["DUPLICATE"] = "DUPLICATE";
220
+ SiteCreatedContext2["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
221
+ SiteCreatedContext2["FLASH"] = "FLASH";
222
+ return SiteCreatedContext2;
223
+ })(SiteCreatedContext || {});
224
+ var Namespace = /* @__PURE__ */ ((Namespace2) => {
225
+ Namespace2["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
226
+ Namespace2["WIX"] = "WIX";
227
+ Namespace2["SHOUT_OUT"] = "SHOUT_OUT";
228
+ Namespace2["ALBUMS"] = "ALBUMS";
229
+ Namespace2["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
230
+ Namespace2["HOTELS"] = "HOTELS";
231
+ Namespace2["CLUBS"] = "CLUBS";
232
+ Namespace2["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
233
+ Namespace2["DEV_SITE"] = "DEV_SITE";
234
+ Namespace2["LOGOS"] = "LOGOS";
235
+ Namespace2["VIDEO_MAKER"] = "VIDEO_MAKER";
236
+ Namespace2["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
237
+ Namespace2["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
238
+ Namespace2["HTML_DRAFT"] = "HTML_DRAFT";
239
+ Namespace2["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
240
+ Namespace2["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
241
+ Namespace2["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
242
+ Namespace2["ANYWHERE"] = "ANYWHERE";
243
+ Namespace2["HEADLESS"] = "HEADLESS";
244
+ Namespace2["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
245
+ Namespace2["RISE"] = "RISE";
246
+ Namespace2["BRANDED_FIRST"] = "BRANDED_FIRST";
247
+ Namespace2["NOWNIA"] = "NOWNIA";
248
+ Namespace2["UGC_TEMPLATE"] = "UGC_TEMPLATE";
249
+ Namespace2["CODUX"] = "CODUX";
250
+ Namespace2["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
251
+ Namespace2["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
252
+ Namespace2["STANDALONE_FORMS"] = "STANDALONE_FORMS";
253
+ Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
254
+ Namespace2["MIMIR"] = "MIMIR";
255
+ return Namespace2;
256
+ })(Namespace || {});
257
+ var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
258
+ DeleteStatus2["UNKNOWN"] = "UNKNOWN";
259
+ DeleteStatus2["TRASH"] = "TRASH";
260
+ DeleteStatus2["DELETED"] = "DELETED";
261
+ DeleteStatus2["PENDING_PURGE"] = "PENDING_PURGE";
262
+ DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
263
+ return DeleteStatus2;
264
+ })(DeleteStatus || {});
265
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
266
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
267
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
268
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
269
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
270
+ WebhookIdentityType2["APP"] = "APP";
271
+ return WebhookIdentityType2;
272
+ })(WebhookIdentityType || {});
273
+ async function getProjects2(appDefId, options) {
274
+ const { httpClient, sideEffects } = arguments[2];
275
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
276
+ appDefId,
277
+ paging: options?.paging
278
+ });
279
+ const reqOpts = getProjects(payload);
280
+ sideEffects?.onSiteCall?.();
281
+ try {
282
+ const result = await httpClient.request(reqOpts);
283
+ sideEffects?.onSuccess?.(result);
284
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
285
+ } catch (err) {
286
+ const transformedError = (0, import_transform_error.transformError)(
287
+ err,
288
+ {
289
+ spreadPathsToArguments: {},
290
+ explicitPathsToArguments: { appDefId: "$[0]", paging: "$[1].paging" },
291
+ singleArgumentUnchanged: false
292
+ },
293
+ ["appDefId", "options"]
294
+ );
295
+ sideEffects?.onError?.(err);
296
+ throw transformedError;
297
+ }
298
+ }
299
+ async function syncProject2(identifiers) {
300
+ const { httpClient, sideEffects } = arguments[1];
301
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
302
+ appDefId: identifiers?.appDefId,
303
+ externalId: identifiers?.externalId
304
+ });
305
+ const reqOpts = syncProject(payload);
306
+ sideEffects?.onSiteCall?.();
307
+ try {
308
+ const result = await httpClient.request(reqOpts);
309
+ sideEffects?.onSuccess?.(result);
310
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
311
+ } catch (err) {
312
+ const transformedError = (0, import_transform_error.transformError)(
313
+ err,
314
+ {
315
+ spreadPathsToArguments: {},
316
+ explicitPathsToArguments: {
317
+ appDefId: "$[0].appDefId",
318
+ externalId: "$[0].externalId"
319
+ },
320
+ singleArgumentUnchanged: false
321
+ },
322
+ ["identifiers"]
323
+ );
324
+ sideEffects?.onError?.(err);
325
+ throw transformedError;
326
+ }
327
+ }
328
+ async function getSyncStatus2(identifiers) {
329
+ const { httpClient, sideEffects } = arguments[1];
330
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
331
+ appDefId: identifiers?.appDefId,
332
+ externalId: identifiers?.externalId
333
+ });
334
+ const reqOpts = getSyncStatus(payload);
335
+ sideEffects?.onSiteCall?.();
336
+ try {
337
+ const result = await httpClient.request(reqOpts);
338
+ sideEffects?.onSuccess?.(result);
339
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
340
+ } catch (err) {
341
+ const transformedError = (0, import_transform_error.transformError)(
342
+ err,
343
+ {
344
+ spreadPathsToArguments: {},
345
+ explicitPathsToArguments: {
346
+ appDefId: "$[0].appDefId",
347
+ externalId: "$[0].externalId"
348
+ },
349
+ singleArgumentUnchanged: false
350
+ },
351
+ ["identifiers"]
352
+ );
353
+ sideEffects?.onError?.(err);
354
+ throw transformedError;
355
+ }
356
+ }
357
+ async function stopSync2(identifiers) {
358
+ const { httpClient, sideEffects } = arguments[1];
359
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
360
+ appDefId: identifiers?.appDefId,
361
+ externalId: identifiers?.externalId
362
+ });
363
+ const reqOpts = stopSync(payload);
364
+ sideEffects?.onSiteCall?.();
365
+ try {
366
+ const result = await httpClient.request(reqOpts);
367
+ sideEffects?.onSuccess?.(result);
368
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
369
+ } catch (err) {
370
+ const transformedError = (0, import_transform_error.transformError)(
371
+ err,
372
+ {
373
+ spreadPathsToArguments: {},
374
+ explicitPathsToArguments: {
375
+ appDefId: "$[0].appDefId",
376
+ externalId: "$[0].externalId"
377
+ },
378
+ singleArgumentUnchanged: false
379
+ },
380
+ ["identifiers"]
381
+ );
382
+ sideEffects?.onError?.(err);
383
+ throw transformedError;
384
+ }
385
+ }
386
+ async function getLoginRedirectableUrl2(appDefId) {
387
+ const { httpClient, sideEffects } = arguments[1];
388
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ appDefId });
389
+ const reqOpts = getLoginRedirectableUrl(
390
+ payload
391
+ );
392
+ sideEffects?.onSiteCall?.();
393
+ try {
394
+ const result = await httpClient.request(reqOpts);
395
+ sideEffects?.onSuccess?.(result);
396
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
397
+ } catch (err) {
398
+ const transformedError = (0, import_transform_error.transformError)(
399
+ err,
400
+ {
401
+ spreadPathsToArguments: {},
402
+ explicitPathsToArguments: { appDefId: "$[0]" },
403
+ singleArgumentUnchanged: false
404
+ },
405
+ ["appDefId"]
406
+ );
407
+ sideEffects?.onError?.(err);
408
+ throw transformedError;
409
+ }
410
+ }
411
+
412
+ // src/portfolio-syncedprojects-v1-synced-project-synced-project.public.ts
413
+ function getProjects3(httpClient) {
414
+ return (appDefId, options) => getProjects2(
415
+ appDefId,
416
+ options,
417
+ // @ts-ignore
418
+ { httpClient }
419
+ );
420
+ }
421
+ function syncProject3(httpClient) {
422
+ return (identifiers) => syncProject2(
423
+ identifiers,
424
+ // @ts-ignore
425
+ { httpClient }
426
+ );
427
+ }
428
+ function getSyncStatus3(httpClient) {
429
+ return (identifiers) => getSyncStatus2(
430
+ identifiers,
431
+ // @ts-ignore
432
+ { httpClient }
433
+ );
434
+ }
435
+ function stopSync3(httpClient) {
436
+ return (identifiers) => stopSync2(
437
+ identifiers,
438
+ // @ts-ignore
439
+ { httpClient }
440
+ );
441
+ }
442
+ function getLoginRedirectableUrl3(httpClient) {
443
+ return (appDefId) => getLoginRedirectableUrl2(
444
+ appDefId,
445
+ // @ts-ignore
446
+ { httpClient }
447
+ );
448
+ }
449
+
450
+ // src/portfolio-syncedprojects-v1-synced-project-synced-project.context.ts
451
+ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
452
+ var getProjects4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getProjects3);
453
+ var syncProject4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(syncProject3);
454
+ var getSyncStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSyncStatus3);
455
+ var stopSync4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(stopSync3);
456
+ var getLoginRedirectableUrl4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getLoginRedirectableUrl3);
457
+ // Annotate the CommonJS export names for ESM import in node:
458
+ 0 && (module.exports = {
459
+ DeleteStatus,
460
+ Namespace,
461
+ SiteCreatedContext,
462
+ State,
463
+ SyncStatus,
464
+ WebhookIdentityType,
465
+ getLoginRedirectableUrl,
466
+ getProjects,
467
+ getSyncStatus,
468
+ stopSync,
469
+ syncProject
470
+ });
471
+ //# sourceMappingURL=index.js.map