@pushwoosh/rpc-v2-http-api-data 0.1.529 → 0.1.531

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
@@ -7994,6 +7994,209 @@ export const data = {
7994
7994
  "type": "I",
7995
7995
  "fields": {}
7996
7996
  },
7997
+ "pushwoosh.rpc_v2.line_presets.linePresetsService": {
7998
+ "type": "S",
7999
+ "key": "linePresets",
8000
+ "methods": {
8001
+ "List": {
8002
+ "request": "pushwoosh.rpc_v2.line_presets.ListLinePresetsRequest",
8003
+ "response": "pushwoosh.rpc_v2.line_presets.ListLinePresetsResponse",
8004
+ "method": "get",
8005
+ "path": "/api/line_presets"
8006
+ },
8007
+ "Get": {
8008
+ "request": "pushwoosh.rpc_v2.line_presets.GetLinePresetRequest",
8009
+ "response": "pushwoosh.rpc_v2.line_presets.GetLinePresetResponse",
8010
+ "method": "get",
8011
+ "path": "/api/line_presets/{code}"
8012
+ },
8013
+ "Create": {
8014
+ "request": "pushwoosh.rpc_v2.line_presets.CreateLinePresetRequest",
8015
+ "response": "pushwoosh.rpc_v2.line_presets.CreateLinePresetResponse",
8016
+ "method": "post",
8017
+ "path": "/api/line_presets"
8018
+ },
8019
+ "Update": {
8020
+ "request": "pushwoosh.rpc_v2.line_presets.UpdateLinePresetRequest",
8021
+ "response": "pushwoosh.rpc_v2.line_presets.UpdateLinePresetResponse",
8022
+ "method": "put",
8023
+ "path": "/api/line_presets/{code}"
8024
+ },
8025
+ "Delete": {
8026
+ "request": "pushwoosh.rpc_v2.line_presets.DeleteLinePresetRequest",
8027
+ "response": "pushwoosh.rpc_v2.line_presets.DeleteLinePresetResponse",
8028
+ "method": "delete",
8029
+ "path": "/api/line_presets/{code}"
8030
+ }
8031
+ }
8032
+ },
8033
+ "pushwoosh.rpc_v2.line_presets.ListLinePresetsRequest.OrderBy": {
8034
+ "type": "E",
8035
+ "values": [
8036
+ "NAME",
8037
+ "CREATED",
8038
+ "UPDATED"
8039
+ ]
8040
+ },
8041
+ "pushwoosh.rpc_v2.line_presets.ListLinePresetsRequest.OrderDirection": {
8042
+ "type": "E",
8043
+ "values": [
8044
+ "ASC",
8045
+ "DESC"
8046
+ ]
8047
+ },
8048
+ "pushwoosh.rpc_v2.line_presets.ListLinePresetsRequest": {
8049
+ "type": "I",
8050
+ "fields": {
8051
+ "application": {
8052
+ "type": "string"
8053
+ },
8054
+ "orderBy": {
8055
+ "type": "pushwoosh.rpc_v2.line_presets.ListLinePresetsRequest.OrderBy"
8056
+ },
8057
+ "orderDirection": {
8058
+ "type": "pushwoosh.rpc_v2.line_presets.ListLinePresetsRequest.OrderDirection"
8059
+ },
8060
+ "page": {
8061
+ "type": "number"
8062
+ },
8063
+ "perPage": {
8064
+ "type": "number"
8065
+ },
8066
+ "searchByName": {
8067
+ "type": "string"
8068
+ },
8069
+ "searchByCategory": {
8070
+ "type": "string",
8071
+ "array": true
8072
+ }
8073
+ }
8074
+ },
8075
+ "pushwoosh.rpc_v2.line_presets.LinePreset": {
8076
+ "type": "I",
8077
+ "fields": {
8078
+ "name": {
8079
+ "type": "string"
8080
+ },
8081
+ "code": {
8082
+ "type": "string"
8083
+ },
8084
+ "categories": {
8085
+ "type": "string",
8086
+ "array": true
8087
+ },
8088
+ "localizedContent": {
8089
+ "type": "string",
8090
+ "mapKeyType": "string"
8091
+ },
8092
+ "created": {
8093
+ "type": "Date"
8094
+ },
8095
+ "updated": {
8096
+ "type": "Date"
8097
+ }
8098
+ }
8099
+ },
8100
+ "pushwoosh.rpc_v2.line_presets.ListLinePresetsResponse": {
8101
+ "type": "I",
8102
+ "fields": {
8103
+ "presets": {
8104
+ "type": "pushwoosh.rpc_v2.line_presets.LinePreset",
8105
+ "array": true
8106
+ },
8107
+ "page": {
8108
+ "type": "number"
8109
+ },
8110
+ "perPage": {
8111
+ "type": "number"
8112
+ },
8113
+ "total": {
8114
+ "type": "number"
8115
+ }
8116
+ }
8117
+ },
8118
+ "pushwoosh.rpc_v2.line_presets.GetLinePresetRequest": {
8119
+ "type": "I",
8120
+ "fields": {
8121
+ "code": {
8122
+ "type": "string"
8123
+ }
8124
+ }
8125
+ },
8126
+ "pushwoosh.rpc_v2.line_presets.GetLinePresetResponse": {
8127
+ "type": "I",
8128
+ "fields": {
8129
+ "preset": {
8130
+ "type": "pushwoosh.rpc_v2.line_presets.LinePreset"
8131
+ }
8132
+ }
8133
+ },
8134
+ "pushwoosh.rpc_v2.line_presets.CreateLinePresetRequest": {
8135
+ "type": "I",
8136
+ "fields": {
8137
+ "application": {
8138
+ "type": "string"
8139
+ },
8140
+ "name": {
8141
+ "type": "string"
8142
+ },
8143
+ "categories": {
8144
+ "type": "string",
8145
+ "array": true
8146
+ },
8147
+ "localizedContent": {
8148
+ "type": "string",
8149
+ "mapKeyType": "string"
8150
+ }
8151
+ }
8152
+ },
8153
+ "pushwoosh.rpc_v2.line_presets.CreateLinePresetResponse": {
8154
+ "type": "I",
8155
+ "fields": {
8156
+ "preset": {
8157
+ "type": "pushwoosh.rpc_v2.line_presets.LinePreset"
8158
+ }
8159
+ }
8160
+ },
8161
+ "pushwoosh.rpc_v2.line_presets.UpdateLinePresetRequest": {
8162
+ "type": "I",
8163
+ "fields": {
8164
+ "code": {
8165
+ "type": "string"
8166
+ },
8167
+ "name": {
8168
+ "type": "string"
8169
+ },
8170
+ "categories": {
8171
+ "type": "string",
8172
+ "array": true
8173
+ },
8174
+ "localizedContent": {
8175
+ "type": "string",
8176
+ "mapKeyType": "string"
8177
+ }
8178
+ }
8179
+ },
8180
+ "pushwoosh.rpc_v2.line_presets.UpdateLinePresetResponse": {
8181
+ "type": "I",
8182
+ "fields": {
8183
+ "preset": {
8184
+ "type": "pushwoosh.rpc_v2.line_presets.LinePreset"
8185
+ }
8186
+ }
8187
+ },
8188
+ "pushwoosh.rpc_v2.line_presets.DeleteLinePresetRequest": {
8189
+ "type": "I",
8190
+ "fields": {
8191
+ "code": {
8192
+ "type": "string"
8193
+ }
8194
+ }
8195
+ },
8196
+ "pushwoosh.rpc_v2.line_presets.DeleteLinePresetResponse": {
8197
+ "type": "I",
8198
+ "fields": {}
8199
+ },
7997
8200
  "pushwoosh.rpc_v2.messages.MessagesService": {
7998
8201
  "type": "S",
7999
8202
  "key": "messages",
package/index.d.ts CHANGED
@@ -25,6 +25,7 @@ import { FrequencyCappingService as pushwoosh_rpc_v2_frequency_capping_Frequency
25
25
  import { GeozonesService as pushwoosh_rpc_v2_geozones_GeozonesService } from './geozones';
26
26
  import { GeozonesClustersService as pushwoosh_rpc_v2_geozones_clusters_GeozonesClustersService } from './geozones_clusters';
27
27
  import { IntegrationsService as pushwoosh_rpc_v2_integrations_IntegrationsService } from './integrations';
28
+ import { linePresetsService as pushwoosh_rpc_v2_line_presets_linePresetsService } from './line_presets';
28
29
  import { MessagesService as pushwoosh_rpc_v2_messages_MessagesService } from './messages';
29
30
  import { FiltersCrudService as pushwoosh_objects_filters_v1_FiltersCrudService } from './pushwoosh_objects_filters_v1';
30
31
  import { RestrictionValuesCrudService as pushwoosh_objects_restrictionValues_v1_RestrictionValuesCrudService } from './pushwoosh_objects_restrictionValues_v1';
@@ -69,6 +70,7 @@ export type API = {
69
70
  geozones: pushwoosh_rpc_v2_geozones_GeozonesService;
70
71
  geozonesClusters: pushwoosh_rpc_v2_geozones_clusters_GeozonesClustersService;
71
72
  integrations: pushwoosh_rpc_v2_integrations_IntegrationsService;
73
+ linePresets: pushwoosh_rpc_v2_line_presets_linePresetsService;
72
74
  messages: pushwoosh_rpc_v2_messages_MessagesService;
73
75
  filtersCrud: pushwoosh_objects_filters_v1_FiltersCrudService;
74
76
  restrictionValuesCrud: pushwoosh_objects_restrictionValues_v1_RestrictionValuesCrudService;
@@ -0,0 +1,60 @@
1
+ export interface linePresetsService {
2
+ List(request: ListLinePresetsRequest): Promise<ListLinePresetsResponse>;
3
+ Get(request: GetLinePresetRequest): Promise<GetLinePresetResponse>;
4
+ Create(request: CreateLinePresetRequest): Promise<CreateLinePresetResponse>;
5
+ Update(request: UpdateLinePresetRequest): Promise<UpdateLinePresetResponse>;
6
+ Delete(request: DeleteLinePresetRequest): Promise<DeleteLinePresetResponse>;
7
+ }
8
+ export type ListLinePresetsRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
9
+ export type ListLinePresetsRequest_OrderDirection = 'ASC' | 'DESC';
10
+ export type ListLinePresetsRequest = {
11
+ application?: string;
12
+ orderBy?: ListLinePresetsRequest_OrderBy;
13
+ orderDirection?: ListLinePresetsRequest_OrderDirection;
14
+ page?: number;
15
+ perPage?: number;
16
+ searchByName?: string;
17
+ searchByCategory?: string[];
18
+ };
19
+ export type LinePreset = {
20
+ name: string;
21
+ code: string;
22
+ categories: string[];
23
+ localizedContent: Record<string, string>;
24
+ created: Date;
25
+ updated: Date;
26
+ };
27
+ export type ListLinePresetsResponse = {
28
+ presets: LinePreset[];
29
+ page: number;
30
+ perPage: number;
31
+ total: number;
32
+ };
33
+ export type GetLinePresetRequest = {
34
+ code?: string;
35
+ };
36
+ export type GetLinePresetResponse = {
37
+ preset: LinePreset;
38
+ };
39
+ export type CreateLinePresetRequest = {
40
+ application?: string;
41
+ name?: string;
42
+ categories?: string[];
43
+ localizedContent?: Record<string, string>;
44
+ };
45
+ export type CreateLinePresetResponse = {
46
+ preset: LinePreset;
47
+ };
48
+ export type UpdateLinePresetRequest = {
49
+ code?: string;
50
+ name?: string;
51
+ categories?: string[];
52
+ localizedContent?: Record<string, string>;
53
+ };
54
+ export type UpdateLinePresetResponse = {
55
+ preset: LinePreset;
56
+ };
57
+ export type DeleteLinePresetRequest = {
58
+ code?: string;
59
+ };
60
+ export type DeleteLinePresetResponse = {};
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.529",
3
+ "version": "0.1.531",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",