@pushwoosh/rpc-v2-http-api-data 0.1.765 → 0.1.766
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 +33 -0
- package/email_categories.d.ts +10 -0
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -5735,6 +5735,12 @@ export const data = {
|
|
|
5735
5735
|
"method": "post",
|
|
5736
5736
|
"path": "/api/email_categories"
|
|
5737
5737
|
},
|
|
5738
|
+
"CreateMany": {
|
|
5739
|
+
"request": "pushwoosh.rpc_v2.email_categories.CreateManyRequest",
|
|
5740
|
+
"response": "pushwoosh.rpc_v2.email_categories.CreateManyResponse",
|
|
5741
|
+
"method": "post",
|
|
5742
|
+
"path": "/api/email_categories:many"
|
|
5743
|
+
},
|
|
5738
5744
|
"Get": {
|
|
5739
5745
|
"request": "pushwoosh.rpc_v2.email_categories.GetRequest",
|
|
5740
5746
|
"response": "pushwoosh.rpc_v2.email_categories.GetResponse",
|
|
@@ -5806,6 +5812,27 @@ export const data = {
|
|
|
5806
5812
|
}
|
|
5807
5813
|
}
|
|
5808
5814
|
},
|
|
5815
|
+
"pushwoosh.rpc_v2.email_categories.CreateManyRequest": {
|
|
5816
|
+
"type": "I",
|
|
5817
|
+
"fields": {
|
|
5818
|
+
"application": {
|
|
5819
|
+
"type": "string"
|
|
5820
|
+
},
|
|
5821
|
+
"categories": {
|
|
5822
|
+
"type": "pushwoosh.rpc_v2.email_categories.Category",
|
|
5823
|
+
"array": true
|
|
5824
|
+
}
|
|
5825
|
+
}
|
|
5826
|
+
},
|
|
5827
|
+
"pushwoosh.rpc_v2.email_categories.CreateManyResponse": {
|
|
5828
|
+
"type": "I",
|
|
5829
|
+
"fields": {
|
|
5830
|
+
"categories": {
|
|
5831
|
+
"type": "pushwoosh.rpc_v2.email_categories.Category",
|
|
5832
|
+
"array": true
|
|
5833
|
+
}
|
|
5834
|
+
}
|
|
5835
|
+
},
|
|
5809
5836
|
"pushwoosh.rpc_v2.email_categories.GetRequest": {
|
|
5810
5837
|
"type": "I",
|
|
5811
5838
|
"fields": {
|
|
@@ -5866,6 +5893,12 @@ export const data = {
|
|
|
5866
5893
|
"categories": {
|
|
5867
5894
|
"type": "pushwoosh.rpc_v2.email_categories.Category",
|
|
5868
5895
|
"array": true
|
|
5896
|
+
},
|
|
5897
|
+
"isEnabled": {
|
|
5898
|
+
"type": "boolean"
|
|
5899
|
+
},
|
|
5900
|
+
"isAvailable": {
|
|
5901
|
+
"type": "boolean"
|
|
5869
5902
|
}
|
|
5870
5903
|
}
|
|
5871
5904
|
},
|
package/email_categories.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface EmailCategoriesService {
|
|
2
2
|
Create(request: CreateRequest): Promise<CreateResponse>;
|
|
3
|
+
CreateMany(request: CreateManyRequest): Promise<CreateManyResponse>;
|
|
3
4
|
Get(request: GetRequest): Promise<GetResponse>;
|
|
4
5
|
Update(request: UpdateRequest): Promise<UpdateResponse>;
|
|
5
6
|
Delete(request: DeleteRequest): Promise<DeleteResponse>;
|
|
@@ -20,6 +21,13 @@ export type CreateRequest = {
|
|
|
20
21
|
export type CreateResponse = {
|
|
21
22
|
category: Category;
|
|
22
23
|
};
|
|
24
|
+
export type CreateManyRequest = {
|
|
25
|
+
application?: string;
|
|
26
|
+
categories?: Category[];
|
|
27
|
+
};
|
|
28
|
+
export type CreateManyResponse = {
|
|
29
|
+
categories: Category[];
|
|
30
|
+
};
|
|
23
31
|
export type GetRequest = {
|
|
24
32
|
code?: string;
|
|
25
33
|
};
|
|
@@ -41,6 +49,8 @@ export type ListRequest = {
|
|
|
41
49
|
};
|
|
42
50
|
export type ListResponse = {
|
|
43
51
|
categories: Category[];
|
|
52
|
+
isEnabled: boolean;
|
|
53
|
+
isAvailable: boolean;
|
|
44
54
|
};
|
|
45
55
|
export type EnableRequest = {
|
|
46
56
|
application?: string;
|