@pushwoosh/rpc-gateway-journey-data 0.26.389 → 0.26.390

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
@@ -268,6 +268,30 @@ export const data = {
268
268
  "method": "get",
269
269
  "path": "/api/application/{code}/email-preset"
270
270
  },
271
+ "GetEventsByApplicationCode": {
272
+ "request": "pushwoosh.cj.journey.GetEventsByApplicationCodeRequest",
273
+ "response": "pushwoosh.cj.journey.GetEventsByApplicationCodeResponse",
274
+ "method": "get",
275
+ "path": "/api/v2/application/{code}/event"
276
+ },
277
+ "GetEventAttributeValues": {
278
+ "request": "pushwoosh.cj.journey.GetEventAttributeValuesRequest",
279
+ "response": "pushwoosh.cj.journey.GetEventAttributeValuesResponse",
280
+ "method": "get",
281
+ "path": "/api/v2/application/{code}/event/{event_id}"
282
+ },
283
+ "GetRichMediaByApplicationCode": {
284
+ "request": "pushwoosh.cj.journey.GetRichMediaByApplicationCodeRequest",
285
+ "response": "pushwoosh.cj.journey.GetRichMediaByApplicationCodeResponse",
286
+ "method": "get",
287
+ "path": "/api/v2/application/{code}/richmedia"
288
+ },
289
+ "GetRichMediaByCode": {
290
+ "request": "pushwoosh.cj.journey.GetRichMediaByCodeRequest",
291
+ "response": "pushwoosh.cj.journey.GetRichMediaByCodeResponse",
292
+ "method": "get",
293
+ "path": "/api/v2/application/{code}/richmedia/{rmcode}"
294
+ },
271
295
  "TestWebhook": {
272
296
  "request": "pushwoosh.cj.journey.TestWebhookRequest",
273
297
  "response": "pushwoosh.cj.journey.TestWebhookResponse",
@@ -4972,6 +4996,185 @@ export const data = {
4972
4996
  }
4973
4997
  }
4974
4998
  },
4999
+ "pushwoosh.cj.journey.GetEventsByApplicationCodeRequest": {
5000
+ "type": "I",
5001
+ "fields": {
5002
+ "code": {
5003
+ "type": "string"
5004
+ }
5005
+ }
5006
+ },
5007
+ "pushwoosh.cj.journey.GetEventsByApplicationCodeResponse": {
5008
+ "type": "I",
5009
+ "fields": {
5010
+ "payload": {
5011
+ "type": "pushwoosh.cj.journey.EventsByApplicationCodePayload"
5012
+ }
5013
+ }
5014
+ },
5015
+ "pushwoosh.cj.journey.EventsByApplicationCodePayload": {
5016
+ "type": "I",
5017
+ "fields": {
5018
+ "items": {
5019
+ "type": "pushwoosh.cj.journey.EventItem",
5020
+ "array": true
5021
+ }
5022
+ }
5023
+ },
5024
+ "pushwoosh.cj.journey.EventItem": {
5025
+ "type": "I",
5026
+ "fields": {
5027
+ "id": {
5028
+ "type": "number"
5029
+ },
5030
+ "name": {
5031
+ "type": "string"
5032
+ },
5033
+ "description": {
5034
+ "type": "string"
5035
+ },
5036
+ "attributes": {
5037
+ "type": "pushwoosh.cj.journey.EventAttributeItem",
5038
+ "array": true
5039
+ }
5040
+ }
5041
+ },
5042
+ "pushwoosh.cj.journey.EventAttributeItem": {
5043
+ "type": "I",
5044
+ "fields": {
5045
+ "id": {
5046
+ "type": "number"
5047
+ },
5048
+ "name": {
5049
+ "type": "string"
5050
+ },
5051
+ "type": {
5052
+ "type": "number"
5053
+ }
5054
+ }
5055
+ },
5056
+ "pushwoosh.cj.journey.GetEventAttributeValuesRequest": {
5057
+ "type": "I",
5058
+ "fields": {
5059
+ "code": {
5060
+ "type": "string"
5061
+ },
5062
+ "eventId": {
5063
+ "type": "number"
5064
+ },
5065
+ "attribute": {
5066
+ "type": "string"
5067
+ },
5068
+ "limit": {
5069
+ "type": "number"
5070
+ },
5071
+ "searchValue": {
5072
+ "type": "string"
5073
+ }
5074
+ }
5075
+ },
5076
+ "pushwoosh.cj.journey.GetEventAttributeValuesResponse": {
5077
+ "type": "I",
5078
+ "fields": {
5079
+ "payload": {
5080
+ "type": "pushwoosh.cj.journey.EventAttributeValuesPayload"
5081
+ }
5082
+ }
5083
+ },
5084
+ "pushwoosh.cj.journey.EventAttributeValuesPayload": {
5085
+ "type": "I",
5086
+ "fields": {
5087
+ "values": {
5088
+ "type": "string",
5089
+ "array": true
5090
+ }
5091
+ }
5092
+ },
5093
+ "pushwoosh.cj.journey.GetRichMediaByApplicationCodeRequest": {
5094
+ "type": "I",
5095
+ "fields": {
5096
+ "code": {
5097
+ "type": "string"
5098
+ },
5099
+ "noContent": {
5100
+ "type": "boolean"
5101
+ }
5102
+ }
5103
+ },
5104
+ "pushwoosh.cj.journey.GetRichMediaByApplicationCodeResponse": {
5105
+ "type": "I",
5106
+ "fields": {
5107
+ "payload": {
5108
+ "type": "pushwoosh.cj.journey.RichMediaByApplicationCodePayload"
5109
+ }
5110
+ }
5111
+ },
5112
+ "pushwoosh.cj.journey.RichMediaByApplicationCodePayload": {
5113
+ "type": "I",
5114
+ "fields": {
5115
+ "items": {
5116
+ "type": "pushwoosh.cj.journey.RichMediaItem",
5117
+ "array": true
5118
+ }
5119
+ }
5120
+ },
5121
+ "pushwoosh.cj.journey.RichMediaItem": {
5122
+ "type": "I",
5123
+ "fields": {
5124
+ "name": {
5125
+ "type": "string"
5126
+ },
5127
+ "uid": {
5128
+ "type": "number"
5129
+ },
5130
+ "params": {
5131
+ "type": "string"
5132
+ },
5133
+ "code": {
5134
+ "type": "string"
5135
+ },
5136
+ "applicationId": {
5137
+ "type": "number"
5138
+ },
5139
+ "applicationCode": {
5140
+ "type": "string"
5141
+ },
5142
+ "defaultLanguage": {
5143
+ "type": "string"
5144
+ },
5145
+ "businessCase": {
5146
+ "type": "string"
5147
+ },
5148
+ "fileHash": {
5149
+ "type": "string"
5150
+ },
5151
+ "isSystem": {
5152
+ "type": "boolean"
5153
+ },
5154
+ "zipContent": {
5155
+ "type": "string"
5156
+ }
5157
+ }
5158
+ },
5159
+ "pushwoosh.cj.journey.GetRichMediaByCodeRequest": {
5160
+ "type": "I",
5161
+ "fields": {
5162
+ "code": {
5163
+ "type": "string"
5164
+ },
5165
+ "rmcode": {
5166
+ "type": "string"
5167
+ }
5168
+ }
5169
+ },
5170
+ "pushwoosh.cj.journey.GetRichMediaByCodeResponse": {
5171
+ "type": "I",
5172
+ "fields": {
5173
+ "payload": {
5174
+ "type": "pushwoosh.cj.journey.RichMediaItem"
5175
+ }
5176
+ }
5177
+ },
4975
5178
  "pushwoosh.cj.journey_category.Category": {
4976
5179
  "type": "S",
4977
5180
  "key": "category",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-journey-data",
3
- "version": "0.26.389",
3
+ "version": "0.26.390",
4
4
  "description": "CJ api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -45,6 +45,10 @@ export interface Journey {
45
45
  ValidateJourneyV2(request: ValidateJourneyV2Request): Promise<ValidateJourneyResponse>;
46
46
  GetWhatsAppPresetsByAppCode(request: GetWhatsAppPresetsByAppCodeRequest): Promise<GetWhatsAppPresetsByAppCodeResponse>;
47
47
  GetEmailPresetsByAppCode(request: GetEmailPresetsByAppCodeRequest): Promise<GetEmailPresetsByAppCodeResponse>;
48
+ GetEventsByApplicationCode(request: GetEventsByApplicationCodeRequest): Promise<GetEventsByApplicationCodeResponse>;
49
+ GetEventAttributeValues(request: GetEventAttributeValuesRequest): Promise<GetEventAttributeValuesResponse>;
50
+ GetRichMediaByApplicationCode(request: GetRichMediaByApplicationCodeRequest): Promise<GetRichMediaByApplicationCodeResponse>;
51
+ GetRichMediaByCode(request: GetRichMediaByCodeRequest): Promise<GetRichMediaByCodeResponse>;
48
52
  TestWebhook(request: TestWebhookRequest): Promise<TestWebhookResponse>;
49
53
  }
50
54
  export type GetPlaceholdersRequest = {
@@ -1809,3 +1813,66 @@ export type TestWebhookResponse = {
1809
1813
  statusCode: number;
1810
1814
  body: string;
1811
1815
  };
1816
+ export type GetEventsByApplicationCodeRequest = {
1817
+ code?: string;
1818
+ };
1819
+ export type GetEventsByApplicationCodeResponse = {
1820
+ payload: EventsByApplicationCodePayload;
1821
+ };
1822
+ export type EventsByApplicationCodePayload = {
1823
+ items: EventItem[];
1824
+ };
1825
+ export type EventItem = {
1826
+ id: number;
1827
+ name: string;
1828
+ description: string;
1829
+ attributes: EventAttributeItem[];
1830
+ };
1831
+ export type EventAttributeItem = {
1832
+ id: number;
1833
+ name: string;
1834
+ type: number;
1835
+ };
1836
+ export type GetEventAttributeValuesRequest = {
1837
+ code?: string;
1838
+ eventId?: number;
1839
+ attribute?: string;
1840
+ limit?: number;
1841
+ searchValue?: string;
1842
+ };
1843
+ export type GetEventAttributeValuesResponse = {
1844
+ payload: EventAttributeValuesPayload;
1845
+ };
1846
+ export type EventAttributeValuesPayload = {
1847
+ values: string[];
1848
+ };
1849
+ export type GetRichMediaByApplicationCodeRequest = {
1850
+ code?: string;
1851
+ noContent?: boolean;
1852
+ };
1853
+ export type GetRichMediaByApplicationCodeResponse = {
1854
+ payload: RichMediaByApplicationCodePayload;
1855
+ };
1856
+ export type RichMediaByApplicationCodePayload = {
1857
+ items: RichMediaItem[];
1858
+ };
1859
+ export type RichMediaItem = {
1860
+ name: string;
1861
+ uid: number;
1862
+ params: string;
1863
+ code: string;
1864
+ applicationId: number;
1865
+ applicationCode: string;
1866
+ defaultLanguage: string;
1867
+ businessCase: string;
1868
+ fileHash: string;
1869
+ isSystem: boolean;
1870
+ zipContent: string;
1871
+ };
1872
+ export type GetRichMediaByCodeRequest = {
1873
+ code?: string;
1874
+ rmcode?: string;
1875
+ };
1876
+ export type GetRichMediaByCodeResponse = {
1877
+ payload: RichMediaItem;
1878
+ };