@wix/auto_sdk_automations_automations-v-2 1.0.4 → 1.0.6

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 (121) hide show
  1. package/build/{internal/cjs/src/automations-v2-automation-automations-v-2.universal.d.ts → cjs/automations-v2-automation-automations-v-2.universal-CUoGClWF.d.ts} +220 -567
  2. package/build/cjs/index.d.ts +202 -1
  3. package/build/cjs/index.js +1555 -15
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/meta.d.ts +1167 -1
  6. package/build/cjs/meta.js +960 -15
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/{cjs/src/automations-v2-automation-automations-v-2.universal.d.ts → es/automations-v2-automation-automations-v-2.universal-CUoGClWF.d.mts} +220 -567
  9. package/build/es/index.d.mts +202 -0
  10. package/build/es/index.mjs +1494 -0
  11. package/build/es/index.mjs.map +1 -0
  12. package/build/es/meta.d.mts +1167 -0
  13. package/build/es/meta.mjs +920 -0
  14. package/build/es/meta.mjs.map +1 -0
  15. package/build/internal/{es/src/automations-v2-automation-automations-v-2.universal.d.ts → cjs/automations-v2-automation-automations-v-2.universal-CUoGClWF.d.ts} +220 -567
  16. package/build/internal/cjs/index.d.ts +202 -1
  17. package/build/internal/cjs/index.js +1555 -15
  18. package/build/internal/cjs/index.js.map +1 -1
  19. package/build/internal/cjs/meta.d.ts +1167 -1
  20. package/build/internal/cjs/meta.js +960 -15
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/{es/src/automations-v2-automation-automations-v-2.universal.d.ts → internal/es/automations-v2-automation-automations-v-2.universal-CUoGClWF.d.mts} +220 -567
  23. package/build/internal/es/index.d.mts +202 -0
  24. package/build/internal/es/index.mjs +1494 -0
  25. package/build/internal/es/index.mjs.map +1 -0
  26. package/build/internal/es/meta.d.mts +1167 -0
  27. package/build/internal/es/meta.mjs +920 -0
  28. package/build/internal/es/meta.mjs.map +1 -0
  29. package/package.json +9 -8
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
  34. package/build/cjs/src/automations-v2-automation-automations-v-2.context.js +0 -61
  35. package/build/cjs/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
  36. package/build/cjs/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
  37. package/build/cjs/src/automations-v2-automation-automations-v-2.http.js +0 -666
  38. package/build/cjs/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
  39. package/build/cjs/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
  40. package/build/cjs/src/automations-v2-automation-automations-v-2.meta.js +0 -351
  41. package/build/cjs/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
  42. package/build/cjs/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
  43. package/build/cjs/src/automations-v2-automation-automations-v-2.public.js +0 -167
  44. package/build/cjs/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
  45. package/build/cjs/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2223
  46. package/build/cjs/src/automations-v2-automation-automations-v-2.types.js +0 -276
  47. package/build/cjs/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
  48. package/build/cjs/src/automations-v2-automation-automations-v-2.universal.js +0 -1025
  49. package/build/cjs/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
  50. package/build/es/index.d.ts +0 -1
  51. package/build/es/index.js +0 -2
  52. package/build/es/index.js.map +0 -1
  53. package/build/es/index.typings.d.ts +0 -1
  54. package/build/es/index.typings.js +0 -2
  55. package/build/es/index.typings.js.map +0 -1
  56. package/build/es/meta.d.ts +0 -1
  57. package/build/es/meta.js +0 -2
  58. package/build/es/meta.js.map +0 -1
  59. package/build/es/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
  60. package/build/es/src/automations-v2-automation-automations-v-2.context.js +0 -37
  61. package/build/es/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
  62. package/build/es/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
  63. package/build/es/src/automations-v2-automation-automations-v-2.http.js +0 -646
  64. package/build/es/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
  65. package/build/es/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
  66. package/build/es/src/automations-v2-automation-automations-v-2.meta.js +0 -308
  67. package/build/es/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
  68. package/build/es/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
  69. package/build/es/src/automations-v2-automation-automations-v-2.public.js +0 -126
  70. package/build/es/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
  71. package/build/es/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2223
  72. package/build/es/src/automations-v2-automation-automations-v-2.types.js +0 -273
  73. package/build/es/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
  74. package/build/es/src/automations-v2-automation-automations-v-2.universal.js +0 -982
  75. package/build/es/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
  76. package/build/internal/cjs/index.typings.d.ts +0 -1
  77. package/build/internal/cjs/index.typings.js +0 -18
  78. package/build/internal/cjs/index.typings.js.map +0 -1
  79. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
  80. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.context.js +0 -61
  81. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
  82. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
  83. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.http.js +0 -666
  84. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
  85. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
  86. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.meta.js +0 -351
  87. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
  88. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
  89. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.public.js +0 -167
  90. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
  91. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2223
  92. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.types.js +0 -276
  93. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
  94. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.universal.js +0 -1025
  95. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
  96. package/build/internal/es/index.d.ts +0 -1
  97. package/build/internal/es/index.js +0 -2
  98. package/build/internal/es/index.js.map +0 -1
  99. package/build/internal/es/index.typings.d.ts +0 -1
  100. package/build/internal/es/index.typings.js +0 -2
  101. package/build/internal/es/index.typings.js.map +0 -1
  102. package/build/internal/es/meta.d.ts +0 -1
  103. package/build/internal/es/meta.js +0 -2
  104. package/build/internal/es/meta.js.map +0 -1
  105. package/build/internal/es/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
  106. package/build/internal/es/src/automations-v2-automation-automations-v-2.context.js +0 -37
  107. package/build/internal/es/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
  108. package/build/internal/es/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
  109. package/build/internal/es/src/automations-v2-automation-automations-v-2.http.js +0 -646
  110. package/build/internal/es/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
  111. package/build/internal/es/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
  112. package/build/internal/es/src/automations-v2-automation-automations-v-2.meta.js +0 -308
  113. package/build/internal/es/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
  114. package/build/internal/es/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
  115. package/build/internal/es/src/automations-v2-automation-automations-v-2.public.js +0 -126
  116. package/build/internal/es/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
  117. package/build/internal/es/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2223
  118. package/build/internal/es/src/automations-v2-automation-automations-v-2.types.js +0 -273
  119. package/build/internal/es/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
  120. package/build/internal/es/src/automations-v2-automation-automations-v-2.universal.js +0 -982
  121. package/build/internal/es/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
@@ -1,49 +0,0 @@
1
- import * as ambassadorWixAutomationsV2AutomationTypes from './automations-v2-automation-automations-v-2.types.js';
2
- import * as ambassadorWixAutomationsV2AutomationUniversalTypes from './automations-v2-automation-automations-v-2.universal.js';
3
- export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
- getUrl: (context: any) => string;
5
- httpMethod: K;
6
- path: string;
7
- pathParams: M;
8
- __requestType: T;
9
- __originalRequestType: S;
10
- __responseType: Q;
11
- __originalResponseType: R;
12
- };
13
- export declare function createAutomation(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAutomationsV2AutomationUniversalTypes.CreateAutomationRequest, ambassadorWixAutomationsV2AutomationTypes.CreateAutomationRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.CreateAutomationResponse, ambassadorWixAutomationsV2AutomationTypes.CreateAutomationResponse>;
14
- export declare function getAutomation(): __PublicMethodMetaInfo<'GET', {
15
- automationId: string;
16
- }, ambassadorWixAutomationsV2AutomationUniversalTypes.GetAutomationRequest, ambassadorWixAutomationsV2AutomationTypes.GetAutomationRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.GetAutomationResponse, ambassadorWixAutomationsV2AutomationTypes.GetAutomationResponse>;
17
- export declare function updateAutomation(): __PublicMethodMetaInfo<'PATCH', {
18
- automationId: string;
19
- }, ambassadorWixAutomationsV2AutomationUniversalTypes.UpdateAutomationRequest, ambassadorWixAutomationsV2AutomationTypes.UpdateAutomationRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.UpdateAutomationResponse, ambassadorWixAutomationsV2AutomationTypes.UpdateAutomationResponse>;
20
- export declare function deleteAutomation(): __PublicMethodMetaInfo<'DELETE', {
21
- automationId: string;
22
- }, ambassadorWixAutomationsV2AutomationUniversalTypes.DeleteAutomationRequest, ambassadorWixAutomationsV2AutomationTypes.DeleteAutomationRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.DeleteAutomationResponse, ambassadorWixAutomationsV2AutomationTypes.DeleteAutomationResponse>;
23
- export declare function bulkDeleteAutomations(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAutomationsV2AutomationUniversalTypes.BulkDeleteAutomationsRequest, ambassadorWixAutomationsV2AutomationTypes.BulkDeleteAutomationsRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.BulkDeleteAutomationsResponse, ambassadorWixAutomationsV2AutomationTypes.BulkDeleteAutomationsResponse>;
24
- export declare function generatePreinstalledAutomation(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAutomationsV2AutomationUniversalTypes.GeneratePreinstalledAutomationRequest, ambassadorWixAutomationsV2AutomationTypes.GeneratePreinstalledAutomationRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.GeneratePreinstalledAutomationResponse, ambassadorWixAutomationsV2AutomationTypes.GeneratePreinstalledAutomationResponse>;
25
- export declare function queryAutomations(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAutomationsV2AutomationUniversalTypes.QueryAutomationsRequest, ambassadorWixAutomationsV2AutomationTypes.QueryAutomationsRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.QueryAutomationsResponse, ambassadorWixAutomationsV2AutomationTypes.QueryAutomationsResponse>;
26
- export declare function copyAutomation(): __PublicMethodMetaInfo<'POST', {
27
- automationId: string;
28
- }, ambassadorWixAutomationsV2AutomationUniversalTypes.CopyAutomationRequest, ambassadorWixAutomationsV2AutomationTypes.CopyAutomationRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.CopyAutomationResponse, ambassadorWixAutomationsV2AutomationTypes.CopyAutomationResponse>;
29
- export declare function createDraftAutomation(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAutomationsV2AutomationUniversalTypes.CreateDraftAutomationRequest, ambassadorWixAutomationsV2AutomationTypes.CreateDraftAutomationRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.CreateDraftAutomationResponse, ambassadorWixAutomationsV2AutomationTypes.CreateDraftAutomationResponse>;
30
- export declare function getOrCreateDraftAutomation(): __PublicMethodMetaInfo<'POST', {
31
- originalAutomationId: string;
32
- }, ambassadorWixAutomationsV2AutomationUniversalTypes.GetOrCreateDraftAutomationRequest, ambassadorWixAutomationsV2AutomationTypes.GetOrCreateDraftAutomationRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.GetOrCreateDraftAutomationResponse, ambassadorWixAutomationsV2AutomationTypes.GetOrCreateDraftAutomationResponse>;
33
- export declare function updateDraftAutomation(): __PublicMethodMetaInfo<'PATCH', {
34
- automationId: string;
35
- }, ambassadorWixAutomationsV2AutomationUniversalTypes.UpdateDraftAutomationRequest, ambassadorWixAutomationsV2AutomationTypes.UpdateDraftAutomationRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.UpdateDraftAutomationResponse, ambassadorWixAutomationsV2AutomationTypes.UpdateDraftAutomationResponse>;
36
- export declare function queryAutomationsWithDrafts(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAutomationsV2AutomationUniversalTypes.QueryAutomationsWithDraftsRequest, ambassadorWixAutomationsV2AutomationTypes.QueryAutomationsWithDraftsRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.QueryAutomationsWithDraftsResponse, ambassadorWixAutomationsV2AutomationTypes.QueryAutomationsWithDraftsResponse>;
37
- export declare function deleteDraftAutomation(): __PublicMethodMetaInfo<'DELETE', {
38
- automationId: string;
39
- }, ambassadorWixAutomationsV2AutomationUniversalTypes.DeleteDraftAutomationRequest, ambassadorWixAutomationsV2AutomationTypes.DeleteDraftAutomationRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.DeleteDraftAutomationResponse, ambassadorWixAutomationsV2AutomationTypes.DeleteDraftAutomationResponse>;
40
- export declare function publishDraftAutomation(): __PublicMethodMetaInfo<'POST', {
41
- automationId: string;
42
- }, ambassadorWixAutomationsV2AutomationUniversalTypes.PublishDraftAutomationRequest, ambassadorWixAutomationsV2AutomationTypes.PublishDraftAutomationRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.PublishDraftAutomationResponse, ambassadorWixAutomationsV2AutomationTypes.PublishDraftAutomationResponse>;
43
- export declare function validateAutomation(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAutomationsV2AutomationUniversalTypes.ValidateAutomationRequest, ambassadorWixAutomationsV2AutomationTypes.ValidateAutomationRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.ValidateAutomationResponse, ambassadorWixAutomationsV2AutomationTypes.ValidateAutomationResponse>;
44
- export declare function validateAutomationById(): __PublicMethodMetaInfo<'POST', {
45
- automationId: string;
46
- }, ambassadorWixAutomationsV2AutomationUniversalTypes.ValidateAutomationByIdRequest, ambassadorWixAutomationsV2AutomationTypes.ValidateAutomationByIdRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.ValidateAutomationByIdResponse, ambassadorWixAutomationsV2AutomationTypes.ValidateAutomationByIdResponse>;
47
- export declare function getAutomationRevision(): __PublicMethodMetaInfo<'GET', {
48
- automationId: string;
49
- }, ambassadorWixAutomationsV2AutomationUniversalTypes.GetAutomationRevisionRequest, ambassadorWixAutomationsV2AutomationTypes.GetAutomationRevisionRequest, ambassadorWixAutomationsV2AutomationUniversalTypes.GetAutomationRevisionResponse, ambassadorWixAutomationsV2AutomationTypes.GetAutomationRevisionResponse>;
@@ -1,308 +0,0 @@
1
- import * as ambassadorWixAutomationsV2Automation from './automations-v2-automation-automations-v-2.http.js';
2
- export function createAutomation() {
3
- const payload = {};
4
- const getRequestOptions = ambassadorWixAutomationsV2Automation.createAutomation(payload);
5
- const getUrl = (context) => {
6
- const { url } = getRequestOptions(context);
7
- return url;
8
- };
9
- return {
10
- getUrl,
11
- httpMethod: 'POST',
12
- path: '/v2/automations',
13
- pathParams: {},
14
- __requestType: null,
15
- __originalRequestType: null,
16
- __responseType: null,
17
- __originalResponseType: null,
18
- };
19
- }
20
- export function getAutomation() {
21
- const payload = { automationId: ':automationId' };
22
- const getRequestOptions = ambassadorWixAutomationsV2Automation.getAutomation(payload);
23
- const getUrl = (context) => {
24
- const { url } = getRequestOptions(context);
25
- return url;
26
- };
27
- return {
28
- getUrl,
29
- httpMethod: 'GET',
30
- path: '/v2/automations/{automationId}',
31
- pathParams: { automationId: 'automationId' },
32
- __requestType: null,
33
- __originalRequestType: null,
34
- __responseType: null,
35
- __originalResponseType: null,
36
- };
37
- }
38
- export function updateAutomation() {
39
- const payload = { automation: { id: ':automationId' } };
40
- const getRequestOptions = ambassadorWixAutomationsV2Automation.updateAutomation(payload);
41
- const getUrl = (context) => {
42
- const { url } = getRequestOptions(context);
43
- return url;
44
- };
45
- return {
46
- getUrl,
47
- httpMethod: 'PATCH',
48
- path: '/v2/automations/{automation.id}',
49
- pathParams: { automationId: 'automationId' },
50
- __requestType: null,
51
- __originalRequestType: null,
52
- __responseType: null,
53
- __originalResponseType: null,
54
- };
55
- }
56
- export function deleteAutomation() {
57
- const payload = { automationId: ':automationId' };
58
- const getRequestOptions = ambassadorWixAutomationsV2Automation.deleteAutomation(payload);
59
- const getUrl = (context) => {
60
- const { url } = getRequestOptions(context);
61
- return url;
62
- };
63
- return {
64
- getUrl,
65
- httpMethod: 'DELETE',
66
- path: '/v2/automations/{automationId}',
67
- pathParams: { automationId: 'automationId' },
68
- __requestType: null,
69
- __originalRequestType: null,
70
- __responseType: null,
71
- __originalResponseType: null,
72
- };
73
- }
74
- export function bulkDeleteAutomations() {
75
- const payload = {};
76
- const getRequestOptions = ambassadorWixAutomationsV2Automation.bulkDeleteAutomations(payload);
77
- const getUrl = (context) => {
78
- const { url } = getRequestOptions(context);
79
- return url;
80
- };
81
- return {
82
- getUrl,
83
- httpMethod: 'POST',
84
- path: '/v2/bulk/automations/delete',
85
- pathParams: {},
86
- __requestType: null,
87
- __originalRequestType: null,
88
- __responseType: null,
89
- __originalResponseType: null,
90
- };
91
- }
92
- export function generatePreinstalledAutomation() {
93
- const payload = {};
94
- const getRequestOptions = ambassadorWixAutomationsV2Automation.generatePreinstalledAutomation(payload);
95
- const getUrl = (context) => {
96
- const { url } = getRequestOptions(context);
97
- return url;
98
- };
99
- return {
100
- getUrl,
101
- httpMethod: 'POST',
102
- path: '/v2/preinstalled-automation/generate',
103
- pathParams: {},
104
- __requestType: null,
105
- __originalRequestType: null,
106
- __responseType: null,
107
- __originalResponseType: null,
108
- };
109
- }
110
- export function queryAutomations() {
111
- const payload = {};
112
- const getRequestOptions = ambassadorWixAutomationsV2Automation.queryAutomations(payload);
113
- const getUrl = (context) => {
114
- const { url } = getRequestOptions(context);
115
- return url;
116
- };
117
- return {
118
- getUrl,
119
- httpMethod: 'POST',
120
- path: '/v2/automations/query',
121
- pathParams: {},
122
- __requestType: null,
123
- __originalRequestType: null,
124
- __responseType: null,
125
- __originalResponseType: null,
126
- };
127
- }
128
- export function copyAutomation() {
129
- const payload = { automationId: ':automationId' };
130
- const getRequestOptions = ambassadorWixAutomationsV2Automation.copyAutomation(payload);
131
- const getUrl = (context) => {
132
- const { url } = getRequestOptions(context);
133
- return url;
134
- };
135
- return {
136
- getUrl,
137
- httpMethod: 'POST',
138
- path: '/v2/automations/{automationId}/copy',
139
- pathParams: { automationId: 'automationId' },
140
- __requestType: null,
141
- __originalRequestType: null,
142
- __responseType: null,
143
- __originalResponseType: null,
144
- };
145
- }
146
- export function createDraftAutomation() {
147
- const payload = {};
148
- const getRequestOptions = ambassadorWixAutomationsV2Automation.createDraftAutomation(payload);
149
- const getUrl = (context) => {
150
- const { url } = getRequestOptions(context);
151
- return url;
152
- };
153
- return {
154
- getUrl,
155
- httpMethod: 'POST',
156
- path: '/v2/automations/drafts',
157
- pathParams: {},
158
- __requestType: null,
159
- __originalRequestType: null,
160
- __responseType: null,
161
- __originalResponseType: null,
162
- };
163
- }
164
- export function getOrCreateDraftAutomation() {
165
- const payload = { originalAutomationId: ':originalAutomationId' };
166
- const getRequestOptions = ambassadorWixAutomationsV2Automation.getOrCreateDraftAutomation(payload);
167
- const getUrl = (context) => {
168
- const { url } = getRequestOptions(context);
169
- return url;
170
- };
171
- return {
172
- getUrl,
173
- httpMethod: 'POST',
174
- path: '/v2/automations/drafts/get-or-create/original-automation-id/{originalAutomationId}',
175
- pathParams: { originalAutomationId: 'originalAutomationId' },
176
- __requestType: null,
177
- __originalRequestType: null,
178
- __responseType: null,
179
- __originalResponseType: null,
180
- };
181
- }
182
- export function updateDraftAutomation() {
183
- const payload = { automation: { id: ':automationId' } };
184
- const getRequestOptions = ambassadorWixAutomationsV2Automation.updateDraftAutomation(payload);
185
- const getUrl = (context) => {
186
- const { url } = getRequestOptions(context);
187
- return url;
188
- };
189
- return {
190
- getUrl,
191
- httpMethod: 'PATCH',
192
- path: '/v2/automations/drafts/{automation.id}',
193
- pathParams: { automationId: 'automationId' },
194
- __requestType: null,
195
- __originalRequestType: null,
196
- __responseType: null,
197
- __originalResponseType: null,
198
- };
199
- }
200
- export function queryAutomationsWithDrafts() {
201
- const payload = {};
202
- const getRequestOptions = ambassadorWixAutomationsV2Automation.queryAutomationsWithDrafts(payload);
203
- const getUrl = (context) => {
204
- const { url } = getRequestOptions(context);
205
- return url;
206
- };
207
- return {
208
- getUrl,
209
- httpMethod: 'POST',
210
- path: '/v2/automations/query-with-drafts',
211
- pathParams: {},
212
- __requestType: null,
213
- __originalRequestType: null,
214
- __responseType: null,
215
- __originalResponseType: null,
216
- };
217
- }
218
- export function deleteDraftAutomation() {
219
- const payload = { automationId: ':automationId' };
220
- const getRequestOptions = ambassadorWixAutomationsV2Automation.deleteDraftAutomation(payload);
221
- const getUrl = (context) => {
222
- const { url } = getRequestOptions(context);
223
- return url;
224
- };
225
- return {
226
- getUrl,
227
- httpMethod: 'DELETE',
228
- path: '/v2/automations/drafts/{automationId}',
229
- pathParams: { automationId: 'automationId' },
230
- __requestType: null,
231
- __originalRequestType: null,
232
- __responseType: null,
233
- __originalResponseType: null,
234
- };
235
- }
236
- export function publishDraftAutomation() {
237
- const payload = { automationId: ':automationId' };
238
- const getRequestOptions = ambassadorWixAutomationsV2Automation.publishDraftAutomation(payload);
239
- const getUrl = (context) => {
240
- const { url } = getRequestOptions(context);
241
- return url;
242
- };
243
- return {
244
- getUrl,
245
- httpMethod: 'POST',
246
- path: '/v2/automations/drafts/{automationId}/publish',
247
- pathParams: { automationId: 'automationId' },
248
- __requestType: null,
249
- __originalRequestType: null,
250
- __responseType: null,
251
- __originalResponseType: null,
252
- };
253
- }
254
- export function validateAutomation() {
255
- const payload = {};
256
- const getRequestOptions = ambassadorWixAutomationsV2Automation.validateAutomation(payload);
257
- const getUrl = (context) => {
258
- const { url } = getRequestOptions(context);
259
- return url;
260
- };
261
- return {
262
- getUrl,
263
- httpMethod: 'POST',
264
- path: '/v2/automations/validate',
265
- pathParams: {},
266
- __requestType: null,
267
- __originalRequestType: null,
268
- __responseType: null,
269
- __originalResponseType: null,
270
- };
271
- }
272
- export function validateAutomationById() {
273
- const payload = { automationId: ':automationId' };
274
- const getRequestOptions = ambassadorWixAutomationsV2Automation.validateAutomationById(payload);
275
- const getUrl = (context) => {
276
- const { url } = getRequestOptions(context);
277
- return url;
278
- };
279
- return {
280
- getUrl,
281
- httpMethod: 'POST',
282
- path: '/v2/automations/{automationId}/validate',
283
- pathParams: { automationId: 'automationId' },
284
- __requestType: null,
285
- __originalRequestType: null,
286
- __responseType: null,
287
- __originalResponseType: null,
288
- };
289
- }
290
- export function getAutomationRevision() {
291
- const payload = { automationId: ':automationId' };
292
- const getRequestOptions = ambassadorWixAutomationsV2Automation.getAutomationRevision(payload);
293
- const getUrl = (context) => {
294
- const { url } = getRequestOptions(context);
295
- return url;
296
- };
297
- return {
298
- getUrl,
299
- httpMethod: 'GET',
300
- path: '/v1/automation-revisions/{automationId}',
301
- pathParams: { automationId: 'automationId' },
302
- __requestType: null,
303
- __originalRequestType: null,
304
- __responseType: null,
305
- __originalResponseType: null,
306
- };
307
- }
308
- //# sourceMappingURL=automations-v2-automation-automations-v-2.meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"automations-v2-automation-automations-v-2.meta.js","sourceRoot":"","sources":["../../../src/automations-v2-automation-automations-v-2.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,oCAAoC,MAAM,qDAAqD,CAAC;AAsB5G,MAAM,UAAU,gBAAgB;IAQ9B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,oCAAoC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAEjE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa;IAQ3B,MAAM,OAAO,GAAG,EAAE,YAAY,EAAE,eAAe,EAAS,CAAC;IAEzD,MAAM,iBAAiB,GACrB,oCAAoC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAE9D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE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AQpC,MAAM,OAAO,GAAG,EAAE,YAAY,EAAE,eAAe,EAAS,CAAC;IAEzD,MAAM,iBAAiB,GACrB,oCAAoC,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAEvE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,yCAAyC;QAC/C,UAAU,EAAE,EAAE,YAAY,EAAE,cAAc,EAAE;QAC5C,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qBAAqB;IAQnC,MAAM,OAAO,GAAG,EAAE,YAAY,EAAE,eAAe,EAAS,CAAC;IAEzD,MAAM,iBAAiB,GACrB,oCAAoC,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAEtE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,yCAAyC;QAC/C,UAAU,EAAE,EAAE,YAAY,EAAE,cAAc,EAAE;QAC5C,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
@@ -1,172 +0,0 @@
1
- import { EventDefinition, HttpClient } from '@wix/sdk-types';
2
- import { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, GetOrCreateDraftAutomationResponse, PublishDraftAutomationResponse, QueryAutomationsOptions, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, UpdateAutomation, UpdateDraftAutomation, UpdateDraftAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, ValidateAutomationOptions, ValidateAutomationResponse } from './automations-v2-automation-automations-v-2.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function createAutomation(httpClient: HttpClient): CreateAutomationSignature;
7
- interface CreateAutomationSignature {
8
- /**
9
- * Creates an automation.
10
- * @param - Automation to create.
11
- * @returns Details of the created automation.
12
- */
13
- (automation: Automation): Promise<Automation>;
14
- }
15
- export declare function getAutomation(httpClient: HttpClient): GetAutomationSignature;
16
- interface GetAutomationSignature {
17
- /**
18
- * Retrieves an automation by ID.
19
- * @param - Automation ID.
20
- * @returns Retrieved automation.
21
- */
22
- (automationId: string): Promise<Automation>;
23
- }
24
- export declare function updateAutomation(httpClient: HttpClient): UpdateAutomationSignature;
25
- interface UpdateAutomationSignature {
26
- /**
27
- * Updates the specified automation.
28
- *
29
- * When an automation is updated, its `revision` property is incremented by 1. When updating an automation, you must specify the current revision number.
30
- * @param - Automation ID.
31
- * @returns Updated automation.
32
- */
33
- (_id: string, automation: UpdateAutomation): Promise<Automation>;
34
- }
35
- export declare function deleteAutomation(httpClient: HttpClient): DeleteAutomationSignature;
36
- interface DeleteAutomationSignature {
37
- /**
38
- * Deletes the specified automation.
39
- * @param - Automation ID.
40
- */
41
- (automationId: string): Promise<void>;
42
- }
43
- export declare function bulkDeleteAutomations(httpClient: HttpClient): BulkDeleteAutomationsSignature;
44
- interface BulkDeleteAutomationsSignature {
45
- /**
46
- * Deletes one or more automations.
47
- * @param - IDs of the automations to delete.
48
- */
49
- (automationIds: string[]): Promise<BulkDeleteAutomationsResponse>;
50
- }
51
- export declare function generatePreinstalledAutomation(httpClient: HttpClient): GeneratePreinstalledAutomationSignature;
52
- interface GeneratePreinstalledAutomationSignature {
53
- /**
54
- * Generates a preinstalled automation from another automation.
55
- *
56
- * Calls the action providers for changes needed to make a preinstalled automation, such as changes made to email template.
57
- *
58
- * > **Note**: You must have an account permission to edit an app.
59
- * @param - Automation.
60
- */
61
- (automation: Automation, options?: GeneratePreinstalledAutomationOptions | undefined): Promise<GeneratePreinstalledAutomationResponse>;
62
- }
63
- export declare function queryAutomations(httpClient: HttpClient): QueryAutomationsSignature;
64
- interface QueryAutomationsSignature {
65
- /**
66
- * Retrieves a list of automations. This includes both automations overridden on a site and preinstalled automations. If a preinstalled automation has been overridden on the site, the method returns the override automation.
67
- *
68
- * > **Note**: The method only returns automations by apps installed on the site.
69
- *
70
- * Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
71
- */
72
- (options?: QueryAutomationsOptions | undefined): AutomationsQueryBuilder;
73
- }
74
- export declare function copyAutomation(httpClient: HttpClient): CopyAutomationSignature;
75
- interface CopyAutomationSignature {
76
- /**
77
- * Creates a copy of an action with a new ID, and changes the action's input mapping if necessary.
78
- *
79
- * The action copy isn't saved automatically. To save it, the user must perform an action
80
- * such as clicking the **Save** button.
81
- * @param - ID of the automation to copy.
82
- */
83
- (automationId: string, options?: CopyAutomationOptions | undefined): Promise<CopyAutomationResponse>;
84
- }
85
- export declare function createDraftAutomation(httpClient: HttpClient): CreateDraftAutomationSignature;
86
- interface CreateDraftAutomationSignature {
87
- /**
88
- * Creates a draft automation.
89
- */
90
- (options?: CreateDraftAutomationOptions | undefined): Promise<CreateDraftAutomationResponse>;
91
- }
92
- export declare function getOrCreateDraftAutomation(httpClient: HttpClient): GetOrCreateDraftAutomationSignature;
93
- interface GetOrCreateDraftAutomationSignature {
94
- /**
95
- * Retrieves the draft of the specified automation. If a draft doesn't exist, the method creates one.
96
- *
97
- * > **Note**: If the specified automation is a draft, the method returns it.
98
- * @param - ID of the original automation on which the draft is based.
99
- */
100
- (originalAutomationId: string): Promise<GetOrCreateDraftAutomationResponse>;
101
- }
102
- export declare function updateDraftAutomation(httpClient: HttpClient): UpdateDraftAutomationSignature;
103
- interface UpdateDraftAutomationSignature {
104
- /**
105
- * Updates a draft automation.
106
- * @param - Automation ID.
107
- */
108
- (_id: string, automation: UpdateDraftAutomation): Promise<UpdateDraftAutomationResponse>;
109
- }
110
- export declare function queryAutomationsWithDrafts(httpClient: HttpClient): QueryAutomationsWithDraftsSignature;
111
- interface QueryAutomationsWithDraftsSignature {
112
- /**
113
- * Retrieves a list of automations, including drafts. Max query filter depth is 3.
114
- *
115
- * Relevant automations for the query are returned. This includes automations created on the site and pre-installed automations.
116
- * If there's an existing override for a pre-installed automation, the override is returned in the query result.
117
- * The query only returns automations from apps that are installed on the site.
118
- *
119
- * - new drafts that are not related to existing automations will be returned in the list
120
- * - the response will contain a map of originalAutomationId => relatedDrafts
121
- *
122
- * To learn about working with _Query_ endpoints, see
123
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
124
- * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
125
- * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
126
- */
127
- (options?: QueryAutomationsWithDraftsOptions | undefined): Promise<QueryAutomationsWithDraftsResponse>;
128
- }
129
- export declare function deleteDraftAutomation(httpClient: HttpClient): DeleteDraftAutomationSignature;
130
- interface DeleteDraftAutomationSignature {
131
- /**
132
- * Deletes a draft automation.
133
- * @param - ID of the draft automation to delete.
134
- */
135
- (automationId: string): Promise<void>;
136
- }
137
- export declare function publishDraftAutomation(httpClient: HttpClient): PublishDraftAutomationSignature;
138
- interface PublishDraftAutomationSignature {
139
- /**
140
- * Publishes a draft automation. This applies any changes to the live automation.
141
- * @param - ID of the draft automation to publish.
142
- */
143
- (automationId: string): Promise<PublishDraftAutomationResponse>;
144
- }
145
- export declare function validateAutomation(httpClient: HttpClient): ValidateAutomationSignature;
146
- interface ValidateAutomationSignature {
147
- /**
148
- * Validates the specified automation.
149
- * @param - Automation to validate.
150
- */
151
- (automation: Automation, options?: ValidateAutomationOptions | undefined): Promise<ValidateAutomationResponse>;
152
- }
153
- export declare function validateAutomationById(httpClient: HttpClient): ValidateAutomationByIdSignature;
154
- interface ValidateAutomationByIdSignature {
155
- /**
156
- * Validates the automation specified by ID.
157
- * @param - Automation ID.
158
- */
159
- (automationId: string, options?: ValidateAutomationByIdOptions | undefined): Promise<ValidateAutomationByIdResponse>;
160
- }
161
- export declare function getAutomationRevision(httpClient: HttpClient): GetAutomationRevisionSignature;
162
- interface GetAutomationRevisionSignature {
163
- /**
164
- * Gets the specified automation revision.
165
- * @param - Automation ID.
166
- */
167
- (automationId: string, options?: GetAutomationRevisionOptions | undefined): Promise<GetAutomationRevisionResponse>;
168
- }
169
- export declare const onAutomationCreated: EventDefinition<AutomationCreatedEnvelope, "wix.automations.v2.automation_created">;
170
- export declare const onAutomationDeleted: EventDefinition<AutomationDeletedEnvelope, "wix.automations.v2.automation_deleted">;
171
- export declare const onAutomationUpdated: EventDefinition<AutomationUpdatedEnvelope, "wix.automations.v2.automation_updated">;
172
- export { Action, ActionConfigurationError, ActionErrorType, ActionEvent, ActionInfoOneOf, ActionProviderQuotaInfo, ActionQuotaInfo, ActionSettings, ActionUsageSummary, ActionValidationError, ActionValidationErrorErrorOneOf, ActionValidationInfo, AdditionalInfo, AppDefinedAction, ApplicationError, ApplicationOrigin, Asset, AuditInfo, AuditInfoIdOneOf, Automation, AutomationConfiguration, AutomationConfigurationError, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationErrorType, AutomationMigrationRequest, AutomationOriginInfoOneOf, AutomationSettings, AutomationUpdatedEnvelope, AutomationValidationError, AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, AutomationsQueryBuilder, AutomationsQueryResult, BaseEventMetadata, BulkActionMetadata, BulkDeleteAutomationsRequest, BulkDeleteAutomationsResponse, BulkDeleteResult, CTA, CodeConditionAction, CodeSnippet, ConditionAction, ConditionExpressionGroup, CopyAutomationOptions, CopyAutomationRequest, CopyAutomationResponse, CreateAutomationRequest, CreateAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationRequest, CreateDraftAutomationResponse, CreatePreinstalledAutomationRequest, CreatePreinstalledAutomationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DelayAction, DeleteAutomationRequest, DeleteAutomationResponse, DeleteContext, DeleteDraftAutomationRequest, DeleteDraftAutomationResponse, DeletePreinstalledAutomationRequest, DeletePreinstalledAutomationResponse, DeleteStatus, DeletedWithEntity, Domain, DomainEvent, DomainEventBodyOneOf, DraftInfo, DraftPublished, DraftsInfo, Empty, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationRequest, GeneratePreinstalledAutomationResponse, GetActionsQuotaInfoRequest, GetActionsQuotaInfoResponse, GetAggregatedUsageInfoRequest, GetAggregatedUsageInfoResponse, GetAutomationActionSchemaRequest, GetAutomationActionSchemaResponse, GetAutomationRequest, GetAutomationResponse, GetAutomationRevisionOptions, GetAutomationRevisionRequest, GetAutomationRevisionResponse, GetOrCreateDraftAutomationRequest, GetOrCreateDraftAutomationResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, Language, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, MigrateVeloActionAutomationsRequest, MigrateVeloActionAutomationsResponse, Namespace, NamespaceChanged, OdeditorAssigned, OdeditorUnassigned, Operator, Origin, OriginAutomationInfo, OutputAction, Path, PicassoAssigned, PicassoUnassigned, Plan, PreinstalledAutomationSpecInfo, PreinstalledOrigin, ProviderConfigurationError, PublishDraftAutomationRequest, PublishDraftAutomationResponse, QueryAutomationsOptions, QueryAutomationsRequest, QueryAutomationsResponse, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsRequest, QueryAutomationsWithDraftsResponse, QueryPreinstalledAutomationsForAppRequest, QueryPreinstalledAutomationsForAppResponse, Quota, QuotaInfo, RateLimit, RateLimitAction, RequestedFields, RestoreInfo, ServiceProvisioned, ServiceRemoved, SetVariablesAction, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, Sorting, SplitAction, State, Status, StudioAssigned, StudioUnassigned, TestUpdateApplicationAutomationRequest, TestUpdateApplicationAutomationResponse, TimeUnit, Trigger, TriggerConfigurationError, TriggerErrorType, TriggerUsageSummary, TriggerValidationError, TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, Type, UpdateApplicationAutomationsRequest, UpdateApplicationAutomationsResponse, UpdateAutomation, UpdateAutomationRequest, UpdateAutomationResponse, UpdateDraftAutomation, UpdateDraftAutomationRequest, UpdateDraftAutomationResponse, UpdatePreinstalledAutomationRequest, UpdatePreinstalledAutomationResponse, UpdatedWithPreviousEntity, UpgradeCTA, ValidateAutomationByIdOptions, ValidateAutomationByIdRequest, ValidateAutomationByIdResponse, ValidateAutomationOptions, ValidateAutomationRequest, ValidateAutomationResponse, ValidationErrorSeverity, ValidationErrorType, ValidationSettings, WebhookIdentityType, } from './automations-v2-automation-automations-v-2.universal.js';