@pushwoosh/rpc-v2-http-api-data 0.1.471 → 0.1.473
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/accounts.d.ts +27 -0
- package/data.js +84 -0
- package/package.json +1 -1
package/accounts.d.ts
CHANGED
|
@@ -179,10 +179,12 @@ export interface EmailTemplatesService {
|
|
|
179
179
|
Create(request: CreateEmailTemplateRequest): Promise<CreateEmailTemplateResponse>;
|
|
180
180
|
Get(request: GetEmailTemplateRequest): Promise<GetEmailTemplateResponse>;
|
|
181
181
|
List(request: ListEmailTemplatesRequest): Promise<ListEmailTemplatesResponse>;
|
|
182
|
+
ListLegacyTemplates(request: ListLegacyTemplatesRequest): Promise<ListLegacyTemplatesResponse>;
|
|
182
183
|
Update(request: UpdateEmailTemplateRequest): Promise<UpdateEmailTemplateResponse>;
|
|
183
184
|
Delete(request: DeleteEmailTemplateRequest): Promise<DeleteEmailTemplateResponse>;
|
|
184
185
|
GetEmailTemplateLabels(request: GetEmailTemplateLabelsRequest): Promise<GetEmailTemplateLabelsResponse>;
|
|
185
186
|
Test(request: TestEmailTemplateRequest): Promise<TestEmailTemplateResponse>;
|
|
187
|
+
Migrate(request: MigrateRequest): Promise<MigrateResponse>;
|
|
186
188
|
}
|
|
187
189
|
export type UpdateEmailTemplateRequest = {
|
|
188
190
|
code?: string;
|
|
@@ -286,6 +288,12 @@ export type ListEmailTemplatesResponse = {
|
|
|
286
288
|
perPage: number;
|
|
287
289
|
total: number;
|
|
288
290
|
};
|
|
291
|
+
export type ListLegacyTemplatesRequest = {
|
|
292
|
+
application?: string;
|
|
293
|
+
};
|
|
294
|
+
export type ListLegacyTemplatesResponse = {
|
|
295
|
+
emailTemplates: string[];
|
|
296
|
+
};
|
|
289
297
|
export type DeleteEmailTemplateRequest = {
|
|
290
298
|
code?: string;
|
|
291
299
|
};
|
|
@@ -296,3 +304,22 @@ export type GetEmailTemplateLabelsRequest = {
|
|
|
296
304
|
export type GetEmailTemplateLabelsResponse = {
|
|
297
305
|
labels: string[];
|
|
298
306
|
};
|
|
307
|
+
export type MigrateRequest_SenderInfo_Address = {
|
|
308
|
+
email: string;
|
|
309
|
+
name: string;
|
|
310
|
+
};
|
|
311
|
+
export type MigrateRequest_SenderInfo = {
|
|
312
|
+
from: MigrateRequest_SenderInfo_Address;
|
|
313
|
+
replyTo: MigrateRequest_SenderInfo_Address;
|
|
314
|
+
};
|
|
315
|
+
export type MigrateRequest = {
|
|
316
|
+
code?: string;
|
|
317
|
+
application?: string;
|
|
318
|
+
subject?: Record<string, string>;
|
|
319
|
+
senderInfo?: MigrateRequest_SenderInfo;
|
|
320
|
+
categories?: string[];
|
|
321
|
+
previewSettings?: object;
|
|
322
|
+
};
|
|
323
|
+
export type MigrateResponse = {
|
|
324
|
+
code: string;
|
|
325
|
+
};
|
package/data.js
CHANGED
|
@@ -4277,6 +4277,12 @@ export const data = {
|
|
|
4277
4277
|
"method": "get",
|
|
4278
4278
|
"path": "/api/email_templates"
|
|
4279
4279
|
},
|
|
4280
|
+
"ListLegacyTemplates": {
|
|
4281
|
+
"request": "pushwoosh.rpc_v2.accounts.ListLegacyTemplatesRequest",
|
|
4282
|
+
"response": "pushwoosh.rpc_v2.accounts.ListLegacyTemplatesResponse",
|
|
4283
|
+
"method": "get",
|
|
4284
|
+
"path": "/api/email_templates:legacy-templates"
|
|
4285
|
+
},
|
|
4280
4286
|
"Update": {
|
|
4281
4287
|
"request": "pushwoosh.rpc_v2.accounts.UpdateEmailTemplateRequest",
|
|
4282
4288
|
"response": "pushwoosh.rpc_v2.accounts.UpdateEmailTemplateResponse",
|
|
@@ -4300,6 +4306,12 @@ export const data = {
|
|
|
4300
4306
|
"response": "pushwoosh.rpc_v2.accounts.TestEmailTemplateResponse",
|
|
4301
4307
|
"method": "post",
|
|
4302
4308
|
"path": "/api/email_templates:test"
|
|
4309
|
+
},
|
|
4310
|
+
"Migrate": {
|
|
4311
|
+
"request": "pushwoosh.rpc_v2.accounts.MigrateRequest",
|
|
4312
|
+
"response": "pushwoosh.rpc_v2.accounts.MigrateResponse",
|
|
4313
|
+
"method": "post",
|
|
4314
|
+
"path": "/api/email_templates:migrate"
|
|
4303
4315
|
}
|
|
4304
4316
|
}
|
|
4305
4317
|
},
|
|
@@ -4586,6 +4598,23 @@ export const data = {
|
|
|
4586
4598
|
}
|
|
4587
4599
|
}
|
|
4588
4600
|
},
|
|
4601
|
+
"pushwoosh.rpc_v2.accounts.ListLegacyTemplatesRequest": {
|
|
4602
|
+
"type": "I",
|
|
4603
|
+
"fields": {
|
|
4604
|
+
"application": {
|
|
4605
|
+
"type": "string"
|
|
4606
|
+
}
|
|
4607
|
+
}
|
|
4608
|
+
},
|
|
4609
|
+
"pushwoosh.rpc_v2.accounts.ListLegacyTemplatesResponse": {
|
|
4610
|
+
"type": "I",
|
|
4611
|
+
"fields": {
|
|
4612
|
+
"emailTemplates": {
|
|
4613
|
+
"type": "string",
|
|
4614
|
+
"array": true
|
|
4615
|
+
}
|
|
4616
|
+
}
|
|
4617
|
+
},
|
|
4589
4618
|
"pushwoosh.rpc_v2.accounts.DeleteEmailTemplateRequest": {
|
|
4590
4619
|
"type": "I",
|
|
4591
4620
|
"fields": {
|
|
@@ -4615,6 +4644,61 @@ export const data = {
|
|
|
4615
4644
|
}
|
|
4616
4645
|
}
|
|
4617
4646
|
},
|
|
4647
|
+
"pushwoosh.rpc_v2.accounts.MigrateRequest.SenderInfo.Address": {
|
|
4648
|
+
"type": "I",
|
|
4649
|
+
"fields": {
|
|
4650
|
+
"email": {
|
|
4651
|
+
"type": "string"
|
|
4652
|
+
},
|
|
4653
|
+
"name": {
|
|
4654
|
+
"type": "string"
|
|
4655
|
+
}
|
|
4656
|
+
}
|
|
4657
|
+
},
|
|
4658
|
+
"pushwoosh.rpc_v2.accounts.MigrateRequest.SenderInfo": {
|
|
4659
|
+
"type": "I",
|
|
4660
|
+
"fields": {
|
|
4661
|
+
"from": {
|
|
4662
|
+
"type": "pushwoosh.rpc_v2.accounts.MigrateRequest.SenderInfo.Address"
|
|
4663
|
+
},
|
|
4664
|
+
"replyTo": {
|
|
4665
|
+
"type": "pushwoosh.rpc_v2.accounts.MigrateRequest.SenderInfo.Address"
|
|
4666
|
+
}
|
|
4667
|
+
}
|
|
4668
|
+
},
|
|
4669
|
+
"pushwoosh.rpc_v2.accounts.MigrateRequest": {
|
|
4670
|
+
"type": "I",
|
|
4671
|
+
"fields": {
|
|
4672
|
+
"code": {
|
|
4673
|
+
"type": "string"
|
|
4674
|
+
},
|
|
4675
|
+
"application": {
|
|
4676
|
+
"type": "string"
|
|
4677
|
+
},
|
|
4678
|
+
"subject": {
|
|
4679
|
+
"type": "string",
|
|
4680
|
+
"mapKeyType": "string"
|
|
4681
|
+
},
|
|
4682
|
+
"senderInfo": {
|
|
4683
|
+
"type": "pushwoosh.rpc_v2.accounts.MigrateRequest.SenderInfo"
|
|
4684
|
+
},
|
|
4685
|
+
"categories": {
|
|
4686
|
+
"type": "string",
|
|
4687
|
+
"array": true
|
|
4688
|
+
},
|
|
4689
|
+
"previewSettings": {
|
|
4690
|
+
"type": "object"
|
|
4691
|
+
}
|
|
4692
|
+
}
|
|
4693
|
+
},
|
|
4694
|
+
"pushwoosh.rpc_v2.accounts.MigrateResponse": {
|
|
4695
|
+
"type": "I",
|
|
4696
|
+
"fields": {
|
|
4697
|
+
"code": {
|
|
4698
|
+
"type": "string"
|
|
4699
|
+
}
|
|
4700
|
+
}
|
|
4701
|
+
},
|
|
4618
4702
|
"pushwoosh.rpc_v2.emails_configurations.EmailsConfigurationsService": {
|
|
4619
4703
|
"type": "S",
|
|
4620
4704
|
"key": "emailsConfigurations",
|