@pushwoosh/rpc-v2-http-api-data 0.1.665 → 0.1.668
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 +213 -0
- package/index.d.ts +2 -0
- package/ios_categories.d.ts +65 -0
- package/ios_categories.js +2 -0
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -8778,6 +8778,219 @@ export const data = {
|
|
|
8778
8778
|
"type": "I",
|
|
8779
8779
|
"fields": {}
|
|
8780
8780
|
},
|
|
8781
|
+
"pushwoosh.rpc_v2.ios_categories.IOSCategoriesService": {
|
|
8782
|
+
"type": "S",
|
|
8783
|
+
"key": "iOSCategories",
|
|
8784
|
+
"methods": {
|
|
8785
|
+
"List": {
|
|
8786
|
+
"request": "pushwoosh.rpc_v2.ios_categories.ListIOSCategoriesRequest",
|
|
8787
|
+
"response": "pushwoosh.rpc_v2.ios_categories.ListIOSCategoriesResponse",
|
|
8788
|
+
"method": "get",
|
|
8789
|
+
"path": "/api/ios_categories"
|
|
8790
|
+
},
|
|
8791
|
+
"Get": {
|
|
8792
|
+
"request": "pushwoosh.rpc_v2.ios_categories.GetIOSCategoryRequest",
|
|
8793
|
+
"response": "pushwoosh.rpc_v2.ios_categories.GetIOSCategoryResponse",
|
|
8794
|
+
"method": "get",
|
|
8795
|
+
"path": "/api/ios_categories/{application}/{identifier}"
|
|
8796
|
+
},
|
|
8797
|
+
"Create": {
|
|
8798
|
+
"request": "pushwoosh.rpc_v2.ios_categories.CreateIOSCategoryRequest",
|
|
8799
|
+
"response": "pushwoosh.rpc_v2.ios_categories.CreateIOSCategoryResponse",
|
|
8800
|
+
"method": "post",
|
|
8801
|
+
"path": "/api/ios_categories"
|
|
8802
|
+
},
|
|
8803
|
+
"Update": {
|
|
8804
|
+
"request": "pushwoosh.rpc_v2.ios_categories.UpdateIOSCategoryRequest",
|
|
8805
|
+
"response": "pushwoosh.rpc_v2.ios_categories.UpdateIOSCategoryResponse",
|
|
8806
|
+
"method": "put",
|
|
8807
|
+
"path": "/api/ios_categories/{application}/{identifier}"
|
|
8808
|
+
},
|
|
8809
|
+
"Delete": {
|
|
8810
|
+
"request": "pushwoosh.rpc_v2.ios_categories.DeleteIOSCategoryRequest",
|
|
8811
|
+
"response": "pushwoosh.rpc_v2.ios_categories.DeleteIOSCategoryResponse",
|
|
8812
|
+
"method": "delete",
|
|
8813
|
+
"path": "/api/ios_categories/{application}/{identifier}"
|
|
8814
|
+
}
|
|
8815
|
+
}
|
|
8816
|
+
},
|
|
8817
|
+
"pushwoosh.rpc_v2.ios_categories.ListIOSCategoriesRequest.OrderBy": {
|
|
8818
|
+
"type": "E",
|
|
8819
|
+
"values": [
|
|
8820
|
+
"NAME",
|
|
8821
|
+
"CREATED",
|
|
8822
|
+
"UPDATED"
|
|
8823
|
+
]
|
|
8824
|
+
},
|
|
8825
|
+
"pushwoosh.rpc_v2.ios_categories.ListIOSCategoriesRequest.OrderDirection": {
|
|
8826
|
+
"type": "E",
|
|
8827
|
+
"values": [
|
|
8828
|
+
"ASC",
|
|
8829
|
+
"DESC"
|
|
8830
|
+
]
|
|
8831
|
+
},
|
|
8832
|
+
"pushwoosh.rpc_v2.ios_categories.ListIOSCategoriesRequest": {
|
|
8833
|
+
"type": "I",
|
|
8834
|
+
"fields": {
|
|
8835
|
+
"application": {
|
|
8836
|
+
"type": "string"
|
|
8837
|
+
},
|
|
8838
|
+
"orderBy": {
|
|
8839
|
+
"type": "pushwoosh.rpc_v2.ios_categories.ListIOSCategoriesRequest.OrderBy"
|
|
8840
|
+
},
|
|
8841
|
+
"orderDirection": {
|
|
8842
|
+
"type": "pushwoosh.rpc_v2.ios_categories.ListIOSCategoriesRequest.OrderDirection"
|
|
8843
|
+
},
|
|
8844
|
+
"page": {
|
|
8845
|
+
"type": "number"
|
|
8846
|
+
},
|
|
8847
|
+
"perPage": {
|
|
8848
|
+
"type": "number"
|
|
8849
|
+
},
|
|
8850
|
+
"searchByName": {
|
|
8851
|
+
"type": "string"
|
|
8852
|
+
}
|
|
8853
|
+
}
|
|
8854
|
+
},
|
|
8855
|
+
"pushwoosh.rpc_v2.ios_categories.IOSCategory": {
|
|
8856
|
+
"type": "I",
|
|
8857
|
+
"fields": {
|
|
8858
|
+
"name": {
|
|
8859
|
+
"type": "string"
|
|
8860
|
+
},
|
|
8861
|
+
"identifier": {
|
|
8862
|
+
"type": "string"
|
|
8863
|
+
},
|
|
8864
|
+
"buttons": {
|
|
8865
|
+
"type": "pushwoosh.rpc_v2.ios_categories.IOSCategoryButton",
|
|
8866
|
+
"array": true
|
|
8867
|
+
},
|
|
8868
|
+
"created": {
|
|
8869
|
+
"type": "Date"
|
|
8870
|
+
}
|
|
8871
|
+
}
|
|
8872
|
+
},
|
|
8873
|
+
"pushwoosh.rpc_v2.ios_categories.IOSCategoryButton": {
|
|
8874
|
+
"type": "I",
|
|
8875
|
+
"fields": {
|
|
8876
|
+
"id": {
|
|
8877
|
+
"type": "string"
|
|
8878
|
+
},
|
|
8879
|
+
"label": {
|
|
8880
|
+
"type": "string"
|
|
8881
|
+
},
|
|
8882
|
+
"destructive": {
|
|
8883
|
+
"type": "boolean"
|
|
8884
|
+
},
|
|
8885
|
+
"startApplication": {
|
|
8886
|
+
"type": "boolean"
|
|
8887
|
+
}
|
|
8888
|
+
}
|
|
8889
|
+
},
|
|
8890
|
+
"pushwoosh.rpc_v2.ios_categories.ListIOSCategoriesResponse": {
|
|
8891
|
+
"type": "I",
|
|
8892
|
+
"fields": {
|
|
8893
|
+
"presets": {
|
|
8894
|
+
"type": "pushwoosh.rpc_v2.ios_categories.IOSCategory",
|
|
8895
|
+
"array": true
|
|
8896
|
+
},
|
|
8897
|
+
"page": {
|
|
8898
|
+
"type": "number"
|
|
8899
|
+
},
|
|
8900
|
+
"perPage": {
|
|
8901
|
+
"type": "number"
|
|
8902
|
+
},
|
|
8903
|
+
"total": {
|
|
8904
|
+
"type": "number"
|
|
8905
|
+
}
|
|
8906
|
+
}
|
|
8907
|
+
},
|
|
8908
|
+
"pushwoosh.rpc_v2.ios_categories.GetIOSCategoryRequest": {
|
|
8909
|
+
"type": "I",
|
|
8910
|
+
"fields": {
|
|
8911
|
+
"application": {
|
|
8912
|
+
"type": "string"
|
|
8913
|
+
},
|
|
8914
|
+
"identifier": {
|
|
8915
|
+
"type": "string"
|
|
8916
|
+
}
|
|
8917
|
+
}
|
|
8918
|
+
},
|
|
8919
|
+
"pushwoosh.rpc_v2.ios_categories.GetIOSCategoryResponse": {
|
|
8920
|
+
"type": "I",
|
|
8921
|
+
"fields": {
|
|
8922
|
+
"preset": {
|
|
8923
|
+
"type": "pushwoosh.rpc_v2.ios_categories.IOSCategory"
|
|
8924
|
+
}
|
|
8925
|
+
}
|
|
8926
|
+
},
|
|
8927
|
+
"pushwoosh.rpc_v2.ios_categories.CreateIOSCategoryRequest": {
|
|
8928
|
+
"type": "I",
|
|
8929
|
+
"fields": {
|
|
8930
|
+
"application": {
|
|
8931
|
+
"type": "string"
|
|
8932
|
+
},
|
|
8933
|
+
"name": {
|
|
8934
|
+
"type": "string"
|
|
8935
|
+
},
|
|
8936
|
+
"identifier": {
|
|
8937
|
+
"type": "string"
|
|
8938
|
+
},
|
|
8939
|
+
"buttons": {
|
|
8940
|
+
"type": "pushwoosh.rpc_v2.ios_categories.IOSCategoryButton",
|
|
8941
|
+
"array": true
|
|
8942
|
+
}
|
|
8943
|
+
}
|
|
8944
|
+
},
|
|
8945
|
+
"pushwoosh.rpc_v2.ios_categories.CreateIOSCategoryResponse": {
|
|
8946
|
+
"type": "I",
|
|
8947
|
+
"fields": {
|
|
8948
|
+
"preset": {
|
|
8949
|
+
"type": "pushwoosh.rpc_v2.ios_categories.IOSCategory"
|
|
8950
|
+
}
|
|
8951
|
+
}
|
|
8952
|
+
},
|
|
8953
|
+
"pushwoosh.rpc_v2.ios_categories.UpdateIOSCategoryRequest": {
|
|
8954
|
+
"type": "I",
|
|
8955
|
+
"fields": {
|
|
8956
|
+
"application": {
|
|
8957
|
+
"type": "string"
|
|
8958
|
+
},
|
|
8959
|
+
"identifier": {
|
|
8960
|
+
"type": "string"
|
|
8961
|
+
},
|
|
8962
|
+
"name": {
|
|
8963
|
+
"type": "string"
|
|
8964
|
+
},
|
|
8965
|
+
"buttons": {
|
|
8966
|
+
"type": "pushwoosh.rpc_v2.ios_categories.IOSCategoryButton",
|
|
8967
|
+
"array": true
|
|
8968
|
+
}
|
|
8969
|
+
}
|
|
8970
|
+
},
|
|
8971
|
+
"pushwoosh.rpc_v2.ios_categories.UpdateIOSCategoryResponse": {
|
|
8972
|
+
"type": "I",
|
|
8973
|
+
"fields": {
|
|
8974
|
+
"preset": {
|
|
8975
|
+
"type": "pushwoosh.rpc_v2.ios_categories.IOSCategory"
|
|
8976
|
+
}
|
|
8977
|
+
}
|
|
8978
|
+
},
|
|
8979
|
+
"pushwoosh.rpc_v2.ios_categories.DeleteIOSCategoryRequest": {
|
|
8980
|
+
"type": "I",
|
|
8981
|
+
"fields": {
|
|
8982
|
+
"application": {
|
|
8983
|
+
"type": "string"
|
|
8984
|
+
},
|
|
8985
|
+
"identifier": {
|
|
8986
|
+
"type": "string"
|
|
8987
|
+
}
|
|
8988
|
+
}
|
|
8989
|
+
},
|
|
8990
|
+
"pushwoosh.rpc_v2.ios_categories.DeleteIOSCategoryResponse": {
|
|
8991
|
+
"type": "I",
|
|
8992
|
+
"fields": {}
|
|
8993
|
+
},
|
|
8781
8994
|
"pushwoosh.rpc_v2.kakao_presets.KakaoPresetsService": {
|
|
8782
8995
|
"type": "S",
|
|
8783
8996
|
"key": "kakaoPresets",
|
package/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { FrequencyCappingService as pushwoosh_rpc_v2_frequency_capping_Frequency
|
|
|
28
28
|
import { GeozonesService as pushwoosh_rpc_v2_geozones_GeozonesService } from './geozones';
|
|
29
29
|
import { GeozonesClustersService as pushwoosh_rpc_v2_geozones_clusters_GeozonesClustersService } from './geozones_clusters';
|
|
30
30
|
import { IntegrationsService as pushwoosh_rpc_v2_integrations_IntegrationsService } from './integrations';
|
|
31
|
+
import { IOSCategoriesService as pushwoosh_rpc_v2_ios_categories_IOSCategoriesService } from './ios_categories';
|
|
31
32
|
import { KakaoPresetsService as pushwoosh_rpc_v2_kakao_presets_KakaoPresetsService } from './kakao_presets';
|
|
32
33
|
import { linePresetsService as pushwoosh_rpc_v2_line_presets_linePresetsService } from './line_presets';
|
|
33
34
|
import { MessagesService as pushwoosh_rpc_v2_messages_MessagesService } from './messages';
|
|
@@ -80,6 +81,7 @@ export type API = {
|
|
|
80
81
|
geozones: pushwoosh_rpc_v2_geozones_GeozonesService;
|
|
81
82
|
geozonesClusters: pushwoosh_rpc_v2_geozones_clusters_GeozonesClustersService;
|
|
82
83
|
integrations: pushwoosh_rpc_v2_integrations_IntegrationsService;
|
|
84
|
+
iOSCategories: pushwoosh_rpc_v2_ios_categories_IOSCategoriesService;
|
|
83
85
|
kakaoPresets: pushwoosh_rpc_v2_kakao_presets_KakaoPresetsService;
|
|
84
86
|
linePresets: pushwoosh_rpc_v2_line_presets_linePresetsService;
|
|
85
87
|
messages: pushwoosh_rpc_v2_messages_MessagesService;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export interface IOSCategoriesService {
|
|
2
|
+
List(request: ListIOSCategoriesRequest): Promise<ListIOSCategoriesResponse>;
|
|
3
|
+
Get(request: GetIOSCategoryRequest): Promise<GetIOSCategoryResponse>;
|
|
4
|
+
Create(request: CreateIOSCategoryRequest): Promise<CreateIOSCategoryResponse>;
|
|
5
|
+
Update(request: UpdateIOSCategoryRequest): Promise<UpdateIOSCategoryResponse>;
|
|
6
|
+
Delete(request: DeleteIOSCategoryRequest): Promise<DeleteIOSCategoryResponse>;
|
|
7
|
+
}
|
|
8
|
+
export type ListIOSCategoriesRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
|
|
9
|
+
export type ListIOSCategoriesRequest_OrderDirection = 'ASC' | 'DESC';
|
|
10
|
+
export type ListIOSCategoriesRequest = {
|
|
11
|
+
application?: string;
|
|
12
|
+
orderBy?: ListIOSCategoriesRequest_OrderBy;
|
|
13
|
+
orderDirection?: ListIOSCategoriesRequest_OrderDirection;
|
|
14
|
+
page?: number;
|
|
15
|
+
perPage?: number;
|
|
16
|
+
searchByName?: string;
|
|
17
|
+
};
|
|
18
|
+
export type IOSCategory = {
|
|
19
|
+
name: string;
|
|
20
|
+
identifier: string;
|
|
21
|
+
buttons: IOSCategoryButton[];
|
|
22
|
+
created: Date;
|
|
23
|
+
};
|
|
24
|
+
export type IOSCategoryButton = {
|
|
25
|
+
id: string;
|
|
26
|
+
label: string;
|
|
27
|
+
destructive: boolean;
|
|
28
|
+
startApplication: boolean;
|
|
29
|
+
};
|
|
30
|
+
export type ListIOSCategoriesResponse = {
|
|
31
|
+
presets: IOSCategory[];
|
|
32
|
+
page: number;
|
|
33
|
+
perPage: number;
|
|
34
|
+
total: number;
|
|
35
|
+
};
|
|
36
|
+
export type GetIOSCategoryRequest = {
|
|
37
|
+
application?: string;
|
|
38
|
+
identifier?: string;
|
|
39
|
+
};
|
|
40
|
+
export type GetIOSCategoryResponse = {
|
|
41
|
+
preset: IOSCategory;
|
|
42
|
+
};
|
|
43
|
+
export type CreateIOSCategoryRequest = {
|
|
44
|
+
application?: string;
|
|
45
|
+
name?: string;
|
|
46
|
+
identifier?: string;
|
|
47
|
+
buttons?: IOSCategoryButton[];
|
|
48
|
+
};
|
|
49
|
+
export type CreateIOSCategoryResponse = {
|
|
50
|
+
preset: IOSCategory;
|
|
51
|
+
};
|
|
52
|
+
export type UpdateIOSCategoryRequest = {
|
|
53
|
+
application?: string;
|
|
54
|
+
identifier?: string;
|
|
55
|
+
name?: string;
|
|
56
|
+
buttons?: IOSCategoryButton[];
|
|
57
|
+
};
|
|
58
|
+
export type UpdateIOSCategoryResponse = {
|
|
59
|
+
preset: IOSCategory;
|
|
60
|
+
};
|
|
61
|
+
export type DeleteIOSCategoryRequest = {
|
|
62
|
+
application?: string;
|
|
63
|
+
identifier?: string;
|
|
64
|
+
};
|
|
65
|
+
export type DeleteIOSCategoryResponse = {};
|