@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,176 @@
1
+ import { p as GetProjectsRequest$1, a as GetProjectsResponse$1, o as SyncProjectRequest$1, b as SyncProjectResponse$1, r as GetSyncStatusRequest$1, d as GetSyncStatusResponse$1, s as StopSyncRequest$1, f as StopSyncResponse$1, t as GetLoginRedirectableUrlRequest$1, g as GetLoginRedirectableUrlResponse$1 } from './portfolio-syncedprojects-v1-synced-project-synced-project.universal-Bnf15fH5.mjs';
2
+
3
+ interface SyncedProject {
4
+ /**
5
+ * Project ID in Portfolio - if project was yet to be create, will be None
6
+ * @format GUID
7
+ */
8
+ portfolioProjectId?: string | null;
9
+ /**
10
+ * External Project ID
11
+ * @maxLength 50
12
+ */
13
+ externalId?: string;
14
+ /**
15
+ * Project name
16
+ * @maxLength 100
17
+ */
18
+ title?: string | null;
19
+ /** Project media count */
20
+ mediaCount?: number;
21
+ /**
22
+ * Project image url
23
+ * @format WEB_URL
24
+ */
25
+ coverImage?: string | null;
26
+ /**
27
+ * Project url in external
28
+ * @format WEB_URL
29
+ */
30
+ link?: string | null;
31
+ /**
32
+ * Represents the last time project was synced - returned only if external project is synced
33
+ * @readonly
34
+ */
35
+ lastSynced?: Date | null;
36
+ /** External Project synced status */
37
+ status?: SyncStatusWithLiterals;
38
+ }
39
+ declare enum SyncStatus {
40
+ /** Project was not synced */
41
+ NOT_SYNCED = "NOT_SYNCED",
42
+ /** Project is in pending state */
43
+ PENDING = "PENDING",
44
+ /** Project is in syncing state */
45
+ SYNCING = "SYNCING",
46
+ /** Project was synced */
47
+ SYNCED = "SYNCED"
48
+ }
49
+ /** @enumType */
50
+ type SyncStatusWithLiterals = SyncStatus | 'NOT_SYNCED' | 'PENDING' | 'SYNCING' | 'SYNCED';
51
+ interface CursorPaging {
52
+ /**
53
+ * Maximum number of items to return in the results.
54
+ * @max 100
55
+ */
56
+ limit?: number | null;
57
+ /**
58
+ * Pointer to the next or previous page in the list of results.
59
+ *
60
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
61
+ * Not relevant for the first request.
62
+ * @maxLength 16000
63
+ */
64
+ cursor?: string | null;
65
+ }
66
+ interface SyncProjectRequest {
67
+ /** Provider appDefId */
68
+ appDefId: string;
69
+ /** External Project ID */
70
+ externalId: string;
71
+ }
72
+ interface GetProjectsRequest {
73
+ /** Provider appDefId */
74
+ appDefId: string;
75
+ /** Paging */
76
+ paging?: CursorPaging;
77
+ }
78
+ interface GetProjectsResponse {
79
+ /** Provider appDefId */
80
+ projects?: SyncedProject[];
81
+ /** Paging metadata */
82
+ metadata?: PagingMetadataV2;
83
+ }
84
+ interface PagingMetadataV2 {
85
+ /** Number of items returned in the response. */
86
+ count?: number | null;
87
+ /** Offset that was requested. */
88
+ offset?: number | null;
89
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
90
+ total?: number | null;
91
+ /** Flag that indicates the server failed to calculate the `total` field. */
92
+ tooManyToCount?: boolean | null;
93
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
94
+ cursors?: Cursors;
95
+ }
96
+ interface Cursors {
97
+ /**
98
+ * Cursor string pointing to the next page in the list of results.
99
+ * @maxLength 16000
100
+ */
101
+ next?: string | null;
102
+ /**
103
+ * Cursor pointing to the previous page in the list of results.
104
+ * @maxLength 16000
105
+ */
106
+ prev?: string | null;
107
+ }
108
+ interface SyncProjectResponse {
109
+ /** Portfolio project */
110
+ project?: SyncedProject;
111
+ }
112
+ interface GetSyncStatusRequest {
113
+ /** Provider appDefId */
114
+ appDefId: string;
115
+ /** External Project ID */
116
+ externalId: string;
117
+ }
118
+ interface GetSyncStatusResponse {
119
+ /** Provider appDefId */
120
+ appDefId?: string;
121
+ /** External Project ID */
122
+ externalId?: string;
123
+ /** Synced status */
124
+ status?: SyncStatusWithLiterals;
125
+ }
126
+ interface StopSyncRequest {
127
+ /** Provider appDefId */
128
+ appDefId: string;
129
+ /** External Project ID */
130
+ externalId: string;
131
+ }
132
+ interface StopSyncResponse {
133
+ /** Provider appDefId */
134
+ appDefId?: string;
135
+ /** External Project ID */
136
+ externalId?: string;
137
+ }
138
+ interface GetLoginRedirectableUrlRequest {
139
+ /** Provider appDefId */
140
+ appDefId: string;
141
+ }
142
+ interface GetLoginRedirectableUrlResponse {
143
+ /** Provider appDefId */
144
+ appDefId?: string;
145
+ /** Login url */
146
+ url?: string;
147
+ }
148
+
149
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
150
+ getUrl: (context: any) => string;
151
+ httpMethod: K;
152
+ path: string;
153
+ pathParams: M;
154
+ __requestType: T;
155
+ __originalRequestType: S;
156
+ __responseType: Q;
157
+ __originalResponseType: R;
158
+ };
159
+ declare function getProjects(): __PublicMethodMetaInfo<'GET', {
160
+ appDefId: string;
161
+ }, GetProjectsRequest$1, GetProjectsRequest, GetProjectsResponse$1, GetProjectsResponse>;
162
+ declare function syncProject(): __PublicMethodMetaInfo<'POST', {
163
+ appDefId: string;
164
+ externalId: string;
165
+ }, SyncProjectRequest$1, SyncProjectRequest, SyncProjectResponse$1, SyncProjectResponse>;
166
+ declare function getSyncStatus(): __PublicMethodMetaInfo<'GET', {
167
+ appDefId: string;
168
+ externalId: string;
169
+ }, GetSyncStatusRequest$1, GetSyncStatusRequest, GetSyncStatusResponse$1, GetSyncStatusResponse>;
170
+ declare function stopSync(): __PublicMethodMetaInfo<'POST', {
171
+ appDefId: string;
172
+ externalId: string;
173
+ }, StopSyncRequest$1, StopSyncRequest, StopSyncResponse$1, StopSyncResponse>;
174
+ declare function getLoginRedirectableUrl(): __PublicMethodMetaInfo<'POST', {}, GetLoginRedirectableUrlRequest$1, GetLoginRedirectableUrlRequest, GetLoginRedirectableUrlResponse$1, GetLoginRedirectableUrlResponse>;
175
+
176
+ export { type __PublicMethodMetaInfo, getLoginRedirectableUrl, getProjects, getSyncStatus, stopSync, syncProject };
@@ -0,0 +1,176 @@
1
+ import { p as GetProjectsRequest$1, a as GetProjectsResponse$1, o as SyncProjectRequest$1, b as SyncProjectResponse$1, r as GetSyncStatusRequest$1, d as GetSyncStatusResponse$1, s as StopSyncRequest$1, f as StopSyncResponse$1, t as GetLoginRedirectableUrlRequest$1, g as GetLoginRedirectableUrlResponse$1 } from './portfolio-syncedprojects-v1-synced-project-synced-project.universal-Bnf15fH5.js';
2
+
3
+ interface SyncedProject {
4
+ /**
5
+ * Project ID in Portfolio - if project was yet to be create, will be None
6
+ * @format GUID
7
+ */
8
+ portfolioProjectId?: string | null;
9
+ /**
10
+ * External Project ID
11
+ * @maxLength 50
12
+ */
13
+ externalId?: string;
14
+ /**
15
+ * Project name
16
+ * @maxLength 100
17
+ */
18
+ title?: string | null;
19
+ /** Project media count */
20
+ mediaCount?: number;
21
+ /**
22
+ * Project image url
23
+ * @format WEB_URL
24
+ */
25
+ coverImage?: string | null;
26
+ /**
27
+ * Project url in external
28
+ * @format WEB_URL
29
+ */
30
+ link?: string | null;
31
+ /**
32
+ * Represents the last time project was synced - returned only if external project is synced
33
+ * @readonly
34
+ */
35
+ lastSynced?: Date | null;
36
+ /** External Project synced status */
37
+ status?: SyncStatusWithLiterals;
38
+ }
39
+ declare enum SyncStatus {
40
+ /** Project was not synced */
41
+ NOT_SYNCED = "NOT_SYNCED",
42
+ /** Project is in pending state */
43
+ PENDING = "PENDING",
44
+ /** Project is in syncing state */
45
+ SYNCING = "SYNCING",
46
+ /** Project was synced */
47
+ SYNCED = "SYNCED"
48
+ }
49
+ /** @enumType */
50
+ type SyncStatusWithLiterals = SyncStatus | 'NOT_SYNCED' | 'PENDING' | 'SYNCING' | 'SYNCED';
51
+ interface CursorPaging {
52
+ /**
53
+ * Maximum number of items to return in the results.
54
+ * @max 100
55
+ */
56
+ limit?: number | null;
57
+ /**
58
+ * Pointer to the next or previous page in the list of results.
59
+ *
60
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
61
+ * Not relevant for the first request.
62
+ * @maxLength 16000
63
+ */
64
+ cursor?: string | null;
65
+ }
66
+ interface SyncProjectRequest {
67
+ /** Provider appDefId */
68
+ appDefId: string;
69
+ /** External Project ID */
70
+ externalId: string;
71
+ }
72
+ interface GetProjectsRequest {
73
+ /** Provider appDefId */
74
+ appDefId: string;
75
+ /** Paging */
76
+ paging?: CursorPaging;
77
+ }
78
+ interface GetProjectsResponse {
79
+ /** Provider appDefId */
80
+ projects?: SyncedProject[];
81
+ /** Paging metadata */
82
+ metadata?: PagingMetadataV2;
83
+ }
84
+ interface PagingMetadataV2 {
85
+ /** Number of items returned in the response. */
86
+ count?: number | null;
87
+ /** Offset that was requested. */
88
+ offset?: number | null;
89
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
90
+ total?: number | null;
91
+ /** Flag that indicates the server failed to calculate the `total` field. */
92
+ tooManyToCount?: boolean | null;
93
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
94
+ cursors?: Cursors;
95
+ }
96
+ interface Cursors {
97
+ /**
98
+ * Cursor string pointing to the next page in the list of results.
99
+ * @maxLength 16000
100
+ */
101
+ next?: string | null;
102
+ /**
103
+ * Cursor pointing to the previous page in the list of results.
104
+ * @maxLength 16000
105
+ */
106
+ prev?: string | null;
107
+ }
108
+ interface SyncProjectResponse {
109
+ /** Portfolio project */
110
+ project?: SyncedProject;
111
+ }
112
+ interface GetSyncStatusRequest {
113
+ /** Provider appDefId */
114
+ appDefId: string;
115
+ /** External Project ID */
116
+ externalId: string;
117
+ }
118
+ interface GetSyncStatusResponse {
119
+ /** Provider appDefId */
120
+ appDefId?: string;
121
+ /** External Project ID */
122
+ externalId?: string;
123
+ /** Synced status */
124
+ status?: SyncStatusWithLiterals;
125
+ }
126
+ interface StopSyncRequest {
127
+ /** Provider appDefId */
128
+ appDefId: string;
129
+ /** External Project ID */
130
+ externalId: string;
131
+ }
132
+ interface StopSyncResponse {
133
+ /** Provider appDefId */
134
+ appDefId?: string;
135
+ /** External Project ID */
136
+ externalId?: string;
137
+ }
138
+ interface GetLoginRedirectableUrlRequest {
139
+ /** Provider appDefId */
140
+ appDefId: string;
141
+ }
142
+ interface GetLoginRedirectableUrlResponse {
143
+ /** Provider appDefId */
144
+ appDefId?: string;
145
+ /** Login url */
146
+ url?: string;
147
+ }
148
+
149
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
150
+ getUrl: (context: any) => string;
151
+ httpMethod: K;
152
+ path: string;
153
+ pathParams: M;
154
+ __requestType: T;
155
+ __originalRequestType: S;
156
+ __responseType: Q;
157
+ __originalResponseType: R;
158
+ };
159
+ declare function getProjects(): __PublicMethodMetaInfo<'GET', {
160
+ appDefId: string;
161
+ }, GetProjectsRequest$1, GetProjectsRequest, GetProjectsResponse$1, GetProjectsResponse>;
162
+ declare function syncProject(): __PublicMethodMetaInfo<'POST', {
163
+ appDefId: string;
164
+ externalId: string;
165
+ }, SyncProjectRequest$1, SyncProjectRequest, SyncProjectResponse$1, SyncProjectResponse>;
166
+ declare function getSyncStatus(): __PublicMethodMetaInfo<'GET', {
167
+ appDefId: string;
168
+ externalId: string;
169
+ }, GetSyncStatusRequest$1, GetSyncStatusRequest, GetSyncStatusResponse$1, GetSyncStatusResponse>;
170
+ declare function stopSync(): __PublicMethodMetaInfo<'POST', {
171
+ appDefId: string;
172
+ externalId: string;
173
+ }, StopSyncRequest$1, StopSyncRequest, StopSyncResponse$1, StopSyncResponse>;
174
+ declare function getLoginRedirectableUrl(): __PublicMethodMetaInfo<'POST', {}, GetLoginRedirectableUrlRequest$1, GetLoginRedirectableUrlRequest, GetLoginRedirectableUrlResponse$1, GetLoginRedirectableUrlResponse>;
175
+
176
+ export { type __PublicMethodMetaInfo, getLoginRedirectableUrl, getProjects, getSyncStatus, stopSync, syncProject };
@@ -0,0 +1,290 @@
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
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ getLoginRedirectableUrl: () => getLoginRedirectableUrl2,
24
+ getProjects: () => getProjects2,
25
+ getSyncStatus: () => getSyncStatus2,
26
+ stopSync: () => stopSync2,
27
+ syncProject: () => syncProject2
28
+ });
29
+ module.exports = __toCommonJS(meta_exports);
30
+
31
+ // src/portfolio-syncedprojects-v1-synced-project-synced-project.http.ts
32
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
33
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
34
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
35
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
36
+ function resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(opts) {
37
+ const domainToMappings = {
38
+ "editor._base_domain_": [
39
+ {
40
+ srcPath: "/_api/synced-projects-service",
41
+ destPath: ""
42
+ }
43
+ ],
44
+ "blocks._base_domain_": [
45
+ {
46
+ srcPath: "/_api/synced-projects-service",
47
+ destPath: ""
48
+ }
49
+ ],
50
+ "create.editorx": [
51
+ {
52
+ srcPath: "/_api/synced-projects-service",
53
+ destPath: ""
54
+ }
55
+ ],
56
+ "manage._base_domain_": [
57
+ {
58
+ srcPath: "/_api/synced-projects-service",
59
+ destPath: ""
60
+ }
61
+ ],
62
+ "www.wixapis.com": [
63
+ {
64
+ srcPath: "/portfolio/syncedprojects/v1/projects/login/url",
65
+ destPath: "/v1/projects/login/url"
66
+ }
67
+ ],
68
+ "*.dev.wix-code.com": [
69
+ {
70
+ srcPath: "/portfolio/syncedprojects/v1/projects/login/url",
71
+ destPath: "/v1/projects/login/url"
72
+ }
73
+ ],
74
+ _: [
75
+ {
76
+ srcPath: "/portfolio/syncedprojects/v1/projects/login/url",
77
+ destPath: "/v1/projects/login/url"
78
+ }
79
+ ]
80
+ };
81
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
82
+ }
83
+ var PACKAGE_NAME = "@wix/auto_sdk_portfolio_synced-project";
84
+ function getProjects(payload) {
85
+ function __getProjects({ host }) {
86
+ const metadata = {
87
+ entityFqdn: "wix.portfolio.syncedprojects.v1.synced_project",
88
+ method: "GET",
89
+ methodFqn: "com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.GetProjects",
90
+ packageName: PACKAGE_NAME,
91
+ url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(
92
+ { protoPath: "/v1/projects/{appDefId}", data: payload, host }
93
+ ),
94
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
95
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
96
+ {
97
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
98
+ paths: [{ path: "projects.lastSynced" }]
99
+ }
100
+ ])
101
+ };
102
+ return metadata;
103
+ }
104
+ return __getProjects;
105
+ }
106
+ function syncProject(payload) {
107
+ function __syncProject({ host }) {
108
+ const metadata = {
109
+ entityFqdn: "wix.portfolio.syncedprojects.v1.synced_project",
110
+ method: "POST",
111
+ methodFqn: "com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.SyncProject",
112
+ packageName: PACKAGE_NAME,
113
+ url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(
114
+ {
115
+ protoPath: "/v1/projects/{appDefId}/sync/{externalId}",
116
+ data: payload,
117
+ host
118
+ }
119
+ ),
120
+ data: payload,
121
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
122
+ {
123
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
124
+ paths: [{ path: "project.lastSynced" }]
125
+ }
126
+ ])
127
+ };
128
+ return metadata;
129
+ }
130
+ return __syncProject;
131
+ }
132
+ function getSyncStatus(payload) {
133
+ function __getSyncStatus({ host }) {
134
+ const metadata = {
135
+ entityFqdn: "wix.portfolio.syncedprojects.v1.synced_project",
136
+ method: "GET",
137
+ methodFqn: "com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.GetSyncStatus",
138
+ packageName: PACKAGE_NAME,
139
+ url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(
140
+ {
141
+ protoPath: "/v1/projects/{appDefId}/sync/{externalId}/status",
142
+ data: payload,
143
+ host
144
+ }
145
+ ),
146
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
147
+ };
148
+ return metadata;
149
+ }
150
+ return __getSyncStatus;
151
+ }
152
+ function stopSync(payload) {
153
+ function __stopSync({ host }) {
154
+ const metadata = {
155
+ entityFqdn: "wix.portfolio.syncedprojects.v1.synced_project",
156
+ method: "POST",
157
+ methodFqn: "com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.StopSync",
158
+ packageName: PACKAGE_NAME,
159
+ url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(
160
+ {
161
+ protoPath: "/v1/projects/{appDefId}/sync/{externalId}/stop",
162
+ data: payload,
163
+ host
164
+ }
165
+ ),
166
+ data: payload
167
+ };
168
+ return metadata;
169
+ }
170
+ return __stopSync;
171
+ }
172
+ function getLoginRedirectableUrl(payload) {
173
+ function __getLoginRedirectableUrl({ host }) {
174
+ const metadata = {
175
+ entityFqdn: "wix.portfolio.syncedprojects.v1.synced_project",
176
+ method: "POST",
177
+ methodFqn: "com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.GetLoginRedirectableUrl",
178
+ packageName: PACKAGE_NAME,
179
+ url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(
180
+ { protoPath: "/v1/projects/login/url", data: payload, host }
181
+ ),
182
+ data: payload
183
+ };
184
+ return metadata;
185
+ }
186
+ return __getLoginRedirectableUrl;
187
+ }
188
+
189
+ // src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.ts
190
+ function getProjects2() {
191
+ const payload = { appDefId: ":appDefId" };
192
+ const getRequestOptions = getProjects(payload);
193
+ const getUrl = (context) => {
194
+ const { url } = getRequestOptions(context);
195
+ return url;
196
+ };
197
+ return {
198
+ getUrl,
199
+ httpMethod: "GET",
200
+ path: "/v1/projects/{appDefId}",
201
+ pathParams: { appDefId: "appDefId" },
202
+ __requestType: null,
203
+ __originalRequestType: null,
204
+ __responseType: null,
205
+ __originalResponseType: null
206
+ };
207
+ }
208
+ function syncProject2() {
209
+ const payload = { appDefId: ":appDefId", externalId: ":externalId" };
210
+ const getRequestOptions = syncProject(payload);
211
+ const getUrl = (context) => {
212
+ const { url } = getRequestOptions(context);
213
+ return url;
214
+ };
215
+ return {
216
+ getUrl,
217
+ httpMethod: "POST",
218
+ path: "/v1/projects/{appDefId}/sync/{externalId}",
219
+ pathParams: { appDefId: "appDefId", externalId: "externalId" },
220
+ __requestType: null,
221
+ __originalRequestType: null,
222
+ __responseType: null,
223
+ __originalResponseType: null
224
+ };
225
+ }
226
+ function getSyncStatus2() {
227
+ const payload = { appDefId: ":appDefId", externalId: ":externalId" };
228
+ const getRequestOptions = getSyncStatus(payload);
229
+ const getUrl = (context) => {
230
+ const { url } = getRequestOptions(context);
231
+ return url;
232
+ };
233
+ return {
234
+ getUrl,
235
+ httpMethod: "GET",
236
+ path: "/v1/projects/{appDefId}/sync/{externalId}/status",
237
+ pathParams: { appDefId: "appDefId", externalId: "externalId" },
238
+ __requestType: null,
239
+ __originalRequestType: null,
240
+ __responseType: null,
241
+ __originalResponseType: null
242
+ };
243
+ }
244
+ function stopSync2() {
245
+ const payload = { appDefId: ":appDefId", externalId: ":externalId" };
246
+ const getRequestOptions = stopSync(payload);
247
+ const getUrl = (context) => {
248
+ const { url } = getRequestOptions(context);
249
+ return url;
250
+ };
251
+ return {
252
+ getUrl,
253
+ httpMethod: "POST",
254
+ path: "/v1/projects/{appDefId}/sync/{externalId}/stop",
255
+ pathParams: { appDefId: "appDefId", externalId: "externalId" },
256
+ __requestType: null,
257
+ __originalRequestType: null,
258
+ __responseType: null,
259
+ __originalResponseType: null
260
+ };
261
+ }
262
+ function getLoginRedirectableUrl2() {
263
+ const payload = {};
264
+ const getRequestOptions = getLoginRedirectableUrl(
265
+ payload
266
+ );
267
+ const getUrl = (context) => {
268
+ const { url } = getRequestOptions(context);
269
+ return url;
270
+ };
271
+ return {
272
+ getUrl,
273
+ httpMethod: "POST",
274
+ path: "/v1/projects/login/url",
275
+ pathParams: {},
276
+ __requestType: null,
277
+ __originalRequestType: null,
278
+ __responseType: null,
279
+ __originalResponseType: null
280
+ };
281
+ }
282
+ // Annotate the CommonJS export names for ESM import in node:
283
+ 0 && (module.exports = {
284
+ getLoginRedirectableUrl,
285
+ getProjects,
286
+ getSyncStatus,
287
+ stopSync,
288
+ syncProject
289
+ });
290
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../meta.ts","../../src/portfolio-syncedprojects-v1-synced-project-synced-project.http.ts","../../src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.ts"],"sourcesContent":["export * from './src/portfolio-syncedprojects-v1-synced-project-synced-project.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'editor._base_domain_': [\n {\n srcPath: '/_api/synced-projects-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/synced-projects-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/synced-projects-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/synced-projects-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/portfolio/syncedprojects/v1/projects/login/url',\n destPath: '/v1/projects/login/url',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/portfolio/syncedprojects/v1/projects/login/url',\n destPath: '/v1/projects/login/url',\n },\n ],\n _: [\n {\n srcPath: '/portfolio/syncedprojects/v1/projects/login/url',\n destPath: '/v1/projects/login/url',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_portfolio_synced-project';\n\n/** Get projects per app */\nexport function getProjects(payload: object): RequestOptionsFactory<any> {\n function __getProjects({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.syncedprojects.v1.synced_project',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.GetProjects',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(\n { protoPath: '/v1/projects/{appDefId}', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'projects.lastSynced' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProjects;\n}\n\n/** Async Sync project */\nexport function syncProject(payload: object): RequestOptionsFactory<any> {\n function __syncProject({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.syncedprojects.v1.synced_project',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.SyncProject',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(\n {\n protoPath: '/v1/projects/{appDefId}/sync/{externalId}',\n data: payload,\n host,\n }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'project.lastSynced' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __syncProject;\n}\n\n/** Get sync status (when was last synced and etc..) */\nexport function getSyncStatus(payload: object): RequestOptionsFactory<any> {\n function __getSyncStatus({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.syncedprojects.v1.synced_project',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.GetSyncStatus',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(\n {\n protoPath: '/v1/projects/{appDefId}/sync/{externalId}/status',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getSyncStatus;\n}\n\n/** Stop sync project */\nexport function stopSync(payload: object): RequestOptionsFactory<any> {\n function __stopSync({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.syncedprojects.v1.synced_project',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.StopSync',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(\n {\n protoPath: '/v1/projects/{appDefId}/sync/{externalId}/stop',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __stopSync;\n}\n\n/** Get login redirectable url */\nexport function getLoginRedirectableUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __getLoginRedirectableUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.syncedprojects.v1.synced_project',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.portfolio.syncedprojects.spi_host.v1.SyncedProjectsService.GetLoginRedirectableUrl',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressPortfolioSyncedprojectsSpiHostV1SyncedProjectsServiceUrl(\n { protoPath: '/v1/projects/login/url', data: payload, host }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getLoginRedirectableUrl;\n}\n","import * as ambassadorWixPortfolioSyncedprojectsV1SyncedProject from './portfolio-syncedprojects-v1-synced-project-synced-project.http.js';\nimport * as ambassadorWixPortfolioSyncedprojectsV1SyncedProjectTypes from './portfolio-syncedprojects-v1-synced-project-synced-project.types.js';\nimport * as ambassadorWixPortfolioSyncedprojectsV1SyncedProjectUniversalTypes from './portfolio-syncedprojects-v1-synced-project-synced-project.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getProjects(): __PublicMethodMetaInfo<\n 'GET',\n { appDefId: string },\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectUniversalTypes.GetProjectsRequest,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectTypes.GetProjectsRequest,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectUniversalTypes.GetProjectsResponse,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectTypes.GetProjectsResponse\n> {\n const payload = { appDefId: ':appDefId' } as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioSyncedprojectsV1SyncedProject.getProjects(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/projects/{appDefId}',\n pathParams: { appDefId: 'appDefId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function syncProject(): __PublicMethodMetaInfo<\n 'POST',\n { appDefId: string; externalId: string },\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectUniversalTypes.SyncProjectRequest,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectTypes.SyncProjectRequest,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectUniversalTypes.SyncProjectResponse,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectTypes.SyncProjectResponse\n> {\n const payload = { appDefId: ':appDefId', externalId: ':externalId' } as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioSyncedprojectsV1SyncedProject.syncProject(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/projects/{appDefId}/sync/{externalId}',\n pathParams: { appDefId: 'appDefId', externalId: 'externalId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getSyncStatus(): __PublicMethodMetaInfo<\n 'GET',\n { appDefId: string; externalId: string },\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectUniversalTypes.GetSyncStatusRequest,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectTypes.GetSyncStatusRequest,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectUniversalTypes.GetSyncStatusResponse,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectTypes.GetSyncStatusResponse\n> {\n const payload = { appDefId: ':appDefId', externalId: ':externalId' } as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioSyncedprojectsV1SyncedProject.getSyncStatus(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/projects/{appDefId}/sync/{externalId}/status',\n pathParams: { appDefId: 'appDefId', externalId: 'externalId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function stopSync(): __PublicMethodMetaInfo<\n 'POST',\n { appDefId: string; externalId: string },\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectUniversalTypes.StopSyncRequest,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectTypes.StopSyncRequest,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectUniversalTypes.StopSyncResponse,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectTypes.StopSyncResponse\n> {\n const payload = { appDefId: ':appDefId', externalId: ':externalId' } as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioSyncedprojectsV1SyncedProject.stopSync(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/projects/{appDefId}/sync/{externalId}/stop',\n pathParams: { appDefId: 'appDefId', externalId: 'externalId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getLoginRedirectableUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectUniversalTypes.GetLoginRedirectableUrlRequest,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectTypes.GetLoginRedirectableUrlRequest,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectUniversalTypes.GetLoginRedirectableUrlResponse,\n ambassadorWixPortfolioSyncedprojectsV1SyncedProjectTypes.GetLoginRedirectableUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioSyncedprojectsV1SyncedProject.getLoginRedirectableUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/projects/login/url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iCAAAA;AAAA,EAAA,mBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,gBAAAC;AAAA,EAAA,mBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;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AAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getLoginRedirectableUrl","getProjects","getSyncStatus","stopSync","syncProject","import_rest_modules","payload","getProjects","syncProject","getSyncStatus","stopSync","getLoginRedirectableUrl"]}