@pushwoosh/rpc-v2-http-api-data 0.1.757 → 0.1.758

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/data.js CHANGED
@@ -5701,6 +5701,165 @@ export const data = {
5701
5701
  }
5702
5702
  }
5703
5703
  },
5704
+ "pushwoosh.rpc_v2.email_categories.EmailCategoriesService": {
5705
+ "type": "S",
5706
+ "key": "emailCategories",
5707
+ "methods": {
5708
+ "Create": {
5709
+ "request": "pushwoosh.rpc_v2.email_categories.CreateRequest",
5710
+ "response": "pushwoosh.rpc_v2.email_categories.CreateResponse",
5711
+ "method": "post",
5712
+ "path": "/api/email_categories"
5713
+ },
5714
+ "Get": {
5715
+ "request": "pushwoosh.rpc_v2.email_categories.GetRequest",
5716
+ "response": "pushwoosh.rpc_v2.email_categories.GetResponse",
5717
+ "method": "get",
5718
+ "path": "/api/email_categories/{code}"
5719
+ },
5720
+ "Update": {
5721
+ "request": "pushwoosh.rpc_v2.email_categories.UpdateRequest",
5722
+ "response": "pushwoosh.rpc_v2.email_categories.UpdateResponse",
5723
+ "method": "put",
5724
+ "path": "/api/email_categories/{code}"
5725
+ },
5726
+ "Delete": {
5727
+ "request": "pushwoosh.rpc_v2.email_categories.DeleteRequest",
5728
+ "response": "pushwoosh.rpc_v2.email_categories.DeleteResponse",
5729
+ "method": "delete",
5730
+ "path": "/api/email_categories/{code}"
5731
+ },
5732
+ "List": {
5733
+ "request": "pushwoosh.rpc_v2.email_categories.ListRequest",
5734
+ "response": "pushwoosh.rpc_v2.email_categories.ListResponse",
5735
+ "method": "get",
5736
+ "path": "/api/email_categories"
5737
+ },
5738
+ "Enable": {
5739
+ "request": "pushwoosh.rpc_v2.email_categories.EnableRequest",
5740
+ "response": "pushwoosh.rpc_v2.email_categories.EnableResponse",
5741
+ "method": "post",
5742
+ "path": "/api/email_categories/enable"
5743
+ }
5744
+ }
5745
+ },
5746
+ "pushwoosh.rpc_v2.email_categories.Category": {
5747
+ "type": "I",
5748
+ "fields": {
5749
+ "code": {
5750
+ "type": "string"
5751
+ },
5752
+ "application": {
5753
+ "type": "string"
5754
+ },
5755
+ "name": {
5756
+ "type": "string"
5757
+ },
5758
+ "description": {
5759
+ "type": "string"
5760
+ }
5761
+ }
5762
+ },
5763
+ "pushwoosh.rpc_v2.email_categories.CreateRequest": {
5764
+ "type": "I",
5765
+ "fields": {
5766
+ "application": {
5767
+ "type": "string"
5768
+ },
5769
+ "name": {
5770
+ "type": "string"
5771
+ },
5772
+ "description": {
5773
+ "type": "string"
5774
+ }
5775
+ }
5776
+ },
5777
+ "pushwoosh.rpc_v2.email_categories.CreateResponse": {
5778
+ "type": "I",
5779
+ "fields": {
5780
+ "category": {
5781
+ "type": "pushwoosh.rpc_v2.email_categories.Category"
5782
+ }
5783
+ }
5784
+ },
5785
+ "pushwoosh.rpc_v2.email_categories.GetRequest": {
5786
+ "type": "I",
5787
+ "fields": {
5788
+ "code": {
5789
+ "type": "string"
5790
+ }
5791
+ }
5792
+ },
5793
+ "pushwoosh.rpc_v2.email_categories.GetResponse": {
5794
+ "type": "I",
5795
+ "fields": {
5796
+ "category": {
5797
+ "type": "pushwoosh.rpc_v2.email_categories.Category"
5798
+ }
5799
+ }
5800
+ },
5801
+ "pushwoosh.rpc_v2.email_categories.UpdateRequest": {
5802
+ "type": "I",
5803
+ "fields": {
5804
+ "code": {
5805
+ "type": "string"
5806
+ },
5807
+ "name": {
5808
+ "type": "string"
5809
+ },
5810
+ "description": {
5811
+ "type": "string"
5812
+ }
5813
+ }
5814
+ },
5815
+ "pushwoosh.rpc_v2.email_categories.UpdateResponse": {
5816
+ "type": "I",
5817
+ "fields": {}
5818
+ },
5819
+ "pushwoosh.rpc_v2.email_categories.DeleteRequest": {
5820
+ "type": "I",
5821
+ "fields": {
5822
+ "code": {
5823
+ "type": "string"
5824
+ }
5825
+ }
5826
+ },
5827
+ "pushwoosh.rpc_v2.email_categories.DeleteResponse": {
5828
+ "type": "I",
5829
+ "fields": {}
5830
+ },
5831
+ "pushwoosh.rpc_v2.email_categories.ListRequest": {
5832
+ "type": "I",
5833
+ "fields": {
5834
+ "application": {
5835
+ "type": "string"
5836
+ }
5837
+ }
5838
+ },
5839
+ "pushwoosh.rpc_v2.email_categories.ListResponse": {
5840
+ "type": "I",
5841
+ "fields": {
5842
+ "categories": {
5843
+ "type": "pushwoosh.rpc_v2.email_categories.Category",
5844
+ "array": true
5845
+ }
5846
+ }
5847
+ },
5848
+ "pushwoosh.rpc_v2.email_categories.EnableRequest": {
5849
+ "type": "I",
5850
+ "fields": {
5851
+ "application": {
5852
+ "type": "string"
5853
+ },
5854
+ "value": {
5855
+ "type": "boolean"
5856
+ }
5857
+ }
5858
+ },
5859
+ "pushwoosh.rpc_v2.email_categories.EnableResponse": {
5860
+ "type": "I",
5861
+ "fields": {}
5862
+ },
5704
5863
  "pushwoosh.rpc_v2.accounts.EmailTemplatesService": {
5705
5864
  "type": "S",
5706
5865
  "key": "emailTemplates",
@@ -0,0 +1,49 @@
1
+ export interface EmailCategoriesService {
2
+ Create(request: CreateRequest): Promise<CreateResponse>;
3
+ Get(request: GetRequest): Promise<GetResponse>;
4
+ Update(request: UpdateRequest): Promise<UpdateResponse>;
5
+ Delete(request: DeleteRequest): Promise<DeleteResponse>;
6
+ List(request: ListRequest): Promise<ListResponse>;
7
+ Enable(request: EnableRequest): Promise<EnableResponse>;
8
+ }
9
+ export type Category = {
10
+ code: string;
11
+ application: string;
12
+ name: string;
13
+ description: string;
14
+ };
15
+ export type CreateRequest = {
16
+ application?: string;
17
+ name?: string;
18
+ description?: string;
19
+ };
20
+ export type CreateResponse = {
21
+ category: Category;
22
+ };
23
+ export type GetRequest = {
24
+ code?: string;
25
+ };
26
+ export type GetResponse = {
27
+ category: Category;
28
+ };
29
+ export type UpdateRequest = {
30
+ code?: string;
31
+ name?: string;
32
+ description?: string;
33
+ };
34
+ export type UpdateResponse = {};
35
+ export type DeleteRequest = {
36
+ code?: string;
37
+ };
38
+ export type DeleteResponse = {};
39
+ export type ListRequest = {
40
+ application?: string;
41
+ };
42
+ export type ListResponse = {
43
+ categories: Category[];
44
+ };
45
+ export type EnableRequest = {
46
+ application?: string;
47
+ value?: boolean;
48
+ };
49
+ export type EnableResponse = {};
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export {};
package/index.d.ts CHANGED
@@ -21,6 +21,7 @@ import { CloudPagesService as pushwoosh_rpc_v2_cloud_pages_CloudPagesService } f
21
21
  import { CustomerJourneyService as pushwoosh_rpc_v2_customer_journey_CustomerJourneyService } from './customer_journey';
22
22
  import { DeeplinksService as pushwoosh_rpc_v2_deeplinks_DeeplinksService } from './deeplinks';
23
23
  import { DevicesService as pushwoosh_rpc_v2_devices_DevicesService } from './devices';
24
+ import { EmailCategoriesService as pushwoosh_rpc_v2_email_categories_EmailCategoriesService } from './email_categories';
24
25
  import { EmailTemplatesService as pushwoosh_rpc_v2_accounts_EmailTemplatesService } from './accounts';
25
26
  import { EmailsConfigurationsService as pushwoosh_rpc_v2_emails_configurations_EmailsConfigurationsService } from './emails_configurations';
26
27
  import { EventsService as pushwoosh_rpc_v2_events_EventsService } from './events';
@@ -78,6 +79,7 @@ export type API = {
78
79
  customerJourney: pushwoosh_rpc_v2_customer_journey_CustomerJourneyService;
79
80
  deeplinks: pushwoosh_rpc_v2_deeplinks_DeeplinksService;
80
81
  devices: pushwoosh_rpc_v2_devices_DevicesService;
82
+ emailCategories: pushwoosh_rpc_v2_email_categories_EmailCategoriesService;
81
83
  emailTemplates: pushwoosh_rpc_v2_accounts_EmailTemplatesService;
82
84
  emailsConfigurations: pushwoosh_rpc_v2_emails_configurations_EmailsConfigurationsService;
83
85
  events: pushwoosh_rpc_v2_events_EventsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.757",
3
+ "version": "0.1.758",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",