@adspireai/adspire-node-sdk 1.0.161 → 1.0.162
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types.gen.d.ts +73 -26
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -120,6 +120,66 @@ export type BrandPromptUpdateRequest = {
|
|
|
120
120
|
*/
|
|
121
121
|
content: string;
|
|
122
122
|
};
|
|
123
|
+
export type CampaignStoreRequest = {
|
|
124
|
+
/**
|
|
125
|
+
* Brand ID (sqid)
|
|
126
|
+
*/
|
|
127
|
+
brand_id: string;
|
|
128
|
+
/**
|
|
129
|
+
* Campaign title
|
|
130
|
+
*/
|
|
131
|
+
title: string;
|
|
132
|
+
/**
|
|
133
|
+
* Campaign description
|
|
134
|
+
*/
|
|
135
|
+
description?: string | null;
|
|
136
|
+
/**
|
|
137
|
+
* Campaign start date
|
|
138
|
+
*/
|
|
139
|
+
start_date?: string | null;
|
|
140
|
+
/**
|
|
141
|
+
* Campaign end date
|
|
142
|
+
*/
|
|
143
|
+
end_date?: string | null;
|
|
144
|
+
/**
|
|
145
|
+
* Campaign status
|
|
146
|
+
*/
|
|
147
|
+
status?: CampaignStatus | null;
|
|
148
|
+
/**
|
|
149
|
+
* Target platforms for the campaign
|
|
150
|
+
*/
|
|
151
|
+
platforms: Array<PostPlatform>;
|
|
152
|
+
};
|
|
153
|
+
export type CampaignUpdateRequest = {
|
|
154
|
+
/**
|
|
155
|
+
* Brand ID (sqid)
|
|
156
|
+
*/
|
|
157
|
+
brand_id: string;
|
|
158
|
+
/**
|
|
159
|
+
* Campaign title
|
|
160
|
+
*/
|
|
161
|
+
title: string;
|
|
162
|
+
/**
|
|
163
|
+
* Campaign description
|
|
164
|
+
*/
|
|
165
|
+
description?: string | null;
|
|
166
|
+
/**
|
|
167
|
+
* Campaign start date
|
|
168
|
+
*/
|
|
169
|
+
start_date?: string | null;
|
|
170
|
+
/**
|
|
171
|
+
* Campaign end date
|
|
172
|
+
*/
|
|
173
|
+
end_date?: string | null;
|
|
174
|
+
/**
|
|
175
|
+
* Campaign status
|
|
176
|
+
*/
|
|
177
|
+
status?: CampaignStatus | null;
|
|
178
|
+
/**
|
|
179
|
+
* Target platforms for the campaign
|
|
180
|
+
*/
|
|
181
|
+
platforms: Array<PostPlatform>;
|
|
182
|
+
};
|
|
123
183
|
export type BrandAsset = {
|
|
124
184
|
id?: string;
|
|
125
185
|
brand_id?: string;
|
|
@@ -173,6 +233,17 @@ export type Brands = {
|
|
|
173
233
|
contact?: string | null;
|
|
174
234
|
brand_channels?: Array<BrandChannel> | null;
|
|
175
235
|
};
|
|
236
|
+
export type Campaigns = {
|
|
237
|
+
id?: string;
|
|
238
|
+
brand?: Brands;
|
|
239
|
+
title: string;
|
|
240
|
+
start_date?: string;
|
|
241
|
+
end_date?: string;
|
|
242
|
+
status?: string | null;
|
|
243
|
+
description?: string | null;
|
|
244
|
+
platforms?: Array<PostPlatform> | null;
|
|
245
|
+
whiteboard?: Whiteboards;
|
|
246
|
+
};
|
|
176
247
|
export type WorkspaceDetail = {
|
|
177
248
|
id: string;
|
|
178
249
|
name: string;
|
|
@@ -239,16 +310,6 @@ export type ApprovalRequests = {
|
|
|
239
310
|
created_at?: string;
|
|
240
311
|
updated_at?: string;
|
|
241
312
|
};
|
|
242
|
-
export type Campaigns = {
|
|
243
|
-
id?: string;
|
|
244
|
-
brand?: Brands;
|
|
245
|
-
title: string;
|
|
246
|
-
start_date?: string;
|
|
247
|
-
end_date?: string;
|
|
248
|
-
status?: string | null;
|
|
249
|
-
description?: string | null;
|
|
250
|
-
whiteboard?: Whiteboards;
|
|
251
|
-
};
|
|
252
313
|
export type Comments = {
|
|
253
314
|
id?: string;
|
|
254
315
|
commenter?: Users | WhiteboardPreviewPublicUser;
|
|
@@ -1712,14 +1773,7 @@ export type ListCampaignsResponses = {
|
|
|
1712
1773
|
};
|
|
1713
1774
|
export type ListCampaignsResponse = ListCampaignsResponses[keyof ListCampaignsResponses];
|
|
1714
1775
|
export type CreateCampaignData = {
|
|
1715
|
-
body:
|
|
1716
|
-
brand_id: string;
|
|
1717
|
-
title: string;
|
|
1718
|
-
description?: string | null;
|
|
1719
|
-
start_date?: string | null;
|
|
1720
|
-
end_date?: string | null;
|
|
1721
|
-
status?: CampaignStatus | null;
|
|
1722
|
-
};
|
|
1776
|
+
body: CampaignStoreRequest;
|
|
1723
1777
|
path?: never;
|
|
1724
1778
|
query?: never;
|
|
1725
1779
|
url: '/api/campaigns';
|
|
@@ -1804,14 +1858,7 @@ export type GetCampaignResponses = {
|
|
|
1804
1858
|
};
|
|
1805
1859
|
export type GetCampaignResponse = GetCampaignResponses[keyof GetCampaignResponses];
|
|
1806
1860
|
export type UpdateCampaignData = {
|
|
1807
|
-
body:
|
|
1808
|
-
brand_id: string;
|
|
1809
|
-
title: string;
|
|
1810
|
-
description?: string | null;
|
|
1811
|
-
start_date?: string | null;
|
|
1812
|
-
end_date?: string | null;
|
|
1813
|
-
status?: CampaignStatus | null;
|
|
1814
|
-
};
|
|
1861
|
+
body: CampaignUpdateRequest;
|
|
1815
1862
|
path: {
|
|
1816
1863
|
/**
|
|
1817
1864
|
* Campaign ID
|