@pushwoosh/rpc-gateway-apple-passkit 0.1.109 → 0.1.111
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 +62 -0
- package/package.json +1 -1
- package/pushwoosh_walletcampaign_v1.d.ts +38 -0
package/data.js
CHANGED
|
@@ -1695,6 +1695,14 @@ export const data = {
|
|
|
1695
1695
|
"CAMPAIGN_STATUS_ARCHIVED"
|
|
1696
1696
|
]
|
|
1697
1697
|
},
|
|
1698
|
+
"pushwoosh.walletcampaign.v1.JobSource": {
|
|
1699
|
+
"type": "E",
|
|
1700
|
+
"values": [
|
|
1701
|
+
"JOB_SOURCE_UNSPECIFIED",
|
|
1702
|
+
"JOB_SOURCE_REVISION",
|
|
1703
|
+
"JOB_SOURCE_TAG_SYNC"
|
|
1704
|
+
]
|
|
1705
|
+
},
|
|
1698
1706
|
"pushwoosh.walletcampaign.v1.JobStatus": {
|
|
1699
1707
|
"type": "E",
|
|
1700
1708
|
"values": [
|
|
@@ -1790,9 +1798,33 @@ export const data = {
|
|
|
1790
1798
|
"images": {
|
|
1791
1799
|
"type": "string",
|
|
1792
1800
|
"mapKeyType": "string"
|
|
1801
|
+
},
|
|
1802
|
+
"tagSync": {
|
|
1803
|
+
"type": "boolean"
|
|
1804
|
+
},
|
|
1805
|
+
"tagSyncIntervalMinutes": {
|
|
1806
|
+
"type": "number"
|
|
1807
|
+
},
|
|
1808
|
+
"notifyMode": {
|
|
1809
|
+
"type": "pushwoosh.walletcampaign.v1.NotifyMode"
|
|
1810
|
+
},
|
|
1811
|
+
"notifyMessage": {
|
|
1812
|
+
"type": "string"
|
|
1813
|
+
},
|
|
1814
|
+
"lastTagSyncAt": {
|
|
1815
|
+
"type": "Date"
|
|
1793
1816
|
}
|
|
1794
1817
|
}
|
|
1795
1818
|
},
|
|
1819
|
+
"pushwoosh.walletcampaign.v1.NotifyMode": {
|
|
1820
|
+
"type": "E",
|
|
1821
|
+
"values": [
|
|
1822
|
+
"NOTIFY_MODE_UNSPECIFIED",
|
|
1823
|
+
"NOTIFY_MODE_SILENT",
|
|
1824
|
+
"NOTIFY_MODE_MESSAGE",
|
|
1825
|
+
"NOTIFY_MODE_NATIVE"
|
|
1826
|
+
]
|
|
1827
|
+
},
|
|
1796
1828
|
"pushwoosh.walletcampaign.v1.CampaignRevision": {
|
|
1797
1829
|
"type": "I",
|
|
1798
1830
|
"fields": {
|
|
@@ -1864,6 +1896,12 @@ export const data = {
|
|
|
1864
1896
|
"failed": {
|
|
1865
1897
|
"type": "number"
|
|
1866
1898
|
},
|
|
1899
|
+
"source": {
|
|
1900
|
+
"type": "pushwoosh.walletcampaign.v1.JobSource"
|
|
1901
|
+
},
|
|
1902
|
+
"skippedUnchanged": {
|
|
1903
|
+
"type": "number"
|
|
1904
|
+
},
|
|
1867
1905
|
"startedAt": {
|
|
1868
1906
|
"type": "Date"
|
|
1869
1907
|
},
|
|
@@ -1951,6 +1989,18 @@ export const data = {
|
|
|
1951
1989
|
"images": {
|
|
1952
1990
|
"type": "string",
|
|
1953
1991
|
"mapKeyType": "string"
|
|
1992
|
+
},
|
|
1993
|
+
"tagSync": {
|
|
1994
|
+
"type": "boolean"
|
|
1995
|
+
},
|
|
1996
|
+
"tagSyncIntervalMinutes": {
|
|
1997
|
+
"type": "number"
|
|
1998
|
+
},
|
|
1999
|
+
"notifyMode": {
|
|
2000
|
+
"type": "pushwoosh.walletcampaign.v1.NotifyMode"
|
|
2001
|
+
},
|
|
2002
|
+
"notifyMessage": {
|
|
2003
|
+
"type": "string"
|
|
1954
2004
|
}
|
|
1955
2005
|
}
|
|
1956
2006
|
},
|
|
@@ -2052,6 +2102,18 @@ export const data = {
|
|
|
2052
2102
|
"images": {
|
|
2053
2103
|
"type": "string",
|
|
2054
2104
|
"mapKeyType": "string"
|
|
2105
|
+
},
|
|
2106
|
+
"tagSync": {
|
|
2107
|
+
"type": "boolean"
|
|
2108
|
+
},
|
|
2109
|
+
"tagSyncIntervalMinutes": {
|
|
2110
|
+
"type": "number"
|
|
2111
|
+
},
|
|
2112
|
+
"notifyMode": {
|
|
2113
|
+
"type": "pushwoosh.walletcampaign.v1.NotifyMode"
|
|
2114
|
+
},
|
|
2115
|
+
"notifyMessage": {
|
|
2116
|
+
"type": "string"
|
|
2055
2117
|
}
|
|
2056
2118
|
}
|
|
2057
2119
|
},
|
package/package.json
CHANGED
|
@@ -50,6 +50,7 @@ export interface WalletCampaignService {
|
|
|
50
50
|
}
|
|
51
51
|
export type Platform = 'PLATFORM_UNSPECIFIED' | 'PLATFORM_APPLE' | 'PLATFORM_GOOGLE';
|
|
52
52
|
export type CampaignStatus = 'CAMPAIGN_STATUS_UNSPECIFIED' | 'CAMPAIGN_STATUS_DRAFT' | 'CAMPAIGN_STATUS_ACTIVE' | 'CAMPAIGN_STATUS_ARCHIVED';
|
|
53
|
+
export type JobSource = 'JOB_SOURCE_UNSPECIFIED' | 'JOB_SOURCE_REVISION' | 'JOB_SOURCE_TAG_SYNC';
|
|
53
54
|
export type JobStatus = 'JOB_STATUS_UNSPECIFIED' | 'JOB_STATUS_QUEUED' | 'JOB_STATUS_RUNNING' | 'JOB_STATUS_DONE' | 'JOB_STATUS_FAILED' | 'JOB_STATUS_CANCELLED';
|
|
54
55
|
/** PersonalFieldSource says where an issued pass gets the value of a personal field. */
|
|
55
56
|
export type PersonalFieldSource = 'PERSONAL_FIELD_SOURCE_UNSPECIFIED' | 'PERSONAL_FIELD_SOURCE_TAG' | 'PERSONAL_FIELD_SOURCE_INPUT';
|
|
@@ -87,7 +88,28 @@ export type Campaign = {
|
|
|
87
88
|
* The bytes live in media-storage and are read when a pass is served.
|
|
88
89
|
*/
|
|
89
90
|
images: Record<string, string>;
|
|
91
|
+
/**
|
|
92
|
+
* Re-read the tag-bound values of issued passes on a schedule and deliver
|
|
93
|
+
* what moved; the interval defaults to 60 minutes.
|
|
94
|
+
*/
|
|
95
|
+
tagSync: boolean;
|
|
96
|
+
tagSyncIntervalMinutes: number;
|
|
97
|
+
notifyMode: NotifyMode;
|
|
98
|
+
/** Text for NOTIFY_MODE_MESSAGE. */
|
|
99
|
+
notifyMessage: string;
|
|
100
|
+
lastTagSyncAt: Date;
|
|
90
101
|
};
|
|
102
|
+
/**
|
|
103
|
+
* NotifyMode says how an update of an issued pass reaches its holder. Google
|
|
104
|
+
* caps a pass at three notifications a day whichever mode asks for them.
|
|
105
|
+
*/
|
|
106
|
+
export type NotifyMode = 'NOTIFY_MODE_UNSPECIFIED'
|
|
107
|
+
/** Update the pass without telling the holder. */
|
|
108
|
+
| 'NOTIFY_MODE_SILENT'
|
|
109
|
+
/** Post our own message on the pass. */
|
|
110
|
+
| 'NOTIFY_MODE_MESSAGE'
|
|
111
|
+
/** Let Google raise its own field-update notification. */
|
|
112
|
+
| 'NOTIFY_MODE_NATIVE';
|
|
91
113
|
export type CampaignRevision = {
|
|
92
114
|
revision: number;
|
|
93
115
|
actor: number;
|
|
@@ -116,6 +138,10 @@ export type UpdateJob = {
|
|
|
116
138
|
updated: number;
|
|
117
139
|
skippedOverride: number;
|
|
118
140
|
failed: number;
|
|
141
|
+
/** What queued the job: a campaign patch, or the scheduled tag re-read. */
|
|
142
|
+
source: JobSource;
|
|
143
|
+
/** Passes a tag sync run left alone because their tag values did not move. */
|
|
144
|
+
skippedUnchanged: number;
|
|
119
145
|
startedAt: Date;
|
|
120
146
|
finishedAt: Date;
|
|
121
147
|
};
|
|
@@ -146,6 +172,10 @@ export type CreateCampaignRequest = {
|
|
|
146
172
|
status: CampaignStatus;
|
|
147
173
|
/** Image slot -> media_files.uuid, uploaded through MediaFilesService beforehand. */
|
|
148
174
|
images: Record<string, string>;
|
|
175
|
+
tagSync: boolean;
|
|
176
|
+
tagSyncIntervalMinutes: number;
|
|
177
|
+
notifyMode: NotifyMode;
|
|
178
|
+
notifyMessage: string;
|
|
149
179
|
};
|
|
150
180
|
export type CreateCampaignResponse = {
|
|
151
181
|
campaign: Campaign;
|
|
@@ -188,6 +218,14 @@ export type PatchCampaignRequest = {
|
|
|
188
218
|
updateMask: string[];
|
|
189
219
|
/** Image slot -> media_files.uuid; masked by "images". */
|
|
190
220
|
images: Record<string, string>;
|
|
221
|
+
/**
|
|
222
|
+
* Masked by "tag_sync", "tag_sync_interval_minutes", "notify_mode" and
|
|
223
|
+
* "notify_message"; they change no pass value, so they queue no job.
|
|
224
|
+
*/
|
|
225
|
+
tagSync: boolean;
|
|
226
|
+
tagSyncIntervalMinutes: number;
|
|
227
|
+
notifyMode: NotifyMode;
|
|
228
|
+
notifyMessage: string;
|
|
191
229
|
};
|
|
192
230
|
export type PatchCampaignResponse = {
|
|
193
231
|
jobId: number;
|