@pushwoosh/rpc-gateway-apple-passkit 0.1.70 → 0.1.72
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 +704 -0
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/pushwoosh_walletcampaign_v1.d.ts +277 -0
- package/pushwoosh_walletcampaign_v1.js +3 -0
package/data.js
CHANGED
|
@@ -1565,6 +1565,710 @@ export const data = {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
1567
|
},
|
|
1568
|
+
"pushwoosh.walletcampaign.v1.WalletCampaignService": {
|
|
1569
|
+
"type": "S",
|
|
1570
|
+
"key": "walletCampaign",
|
|
1571
|
+
"methods": {
|
|
1572
|
+
"CreateCampaign": {
|
|
1573
|
+
"request": "pushwoosh.walletcampaign.v1.CreateCampaignRequest",
|
|
1574
|
+
"response": "pushwoosh.walletcampaign.v1.CreateCampaignResponse",
|
|
1575
|
+
"method": "post",
|
|
1576
|
+
"path": "/api/wallet/campaigns"
|
|
1577
|
+
},
|
|
1578
|
+
"ListCampaigns": {
|
|
1579
|
+
"request": "pushwoosh.walletcampaign.v1.ListCampaignsRequest",
|
|
1580
|
+
"response": "pushwoosh.walletcampaign.v1.ListCampaignsResponse",
|
|
1581
|
+
"method": "get",
|
|
1582
|
+
"path": "/api/wallet/campaigns"
|
|
1583
|
+
},
|
|
1584
|
+
"GetCampaign": {
|
|
1585
|
+
"request": "pushwoosh.walletcampaign.v1.GetCampaignRequest",
|
|
1586
|
+
"response": "pushwoosh.walletcampaign.v1.GetCampaignResponse",
|
|
1587
|
+
"method": "get",
|
|
1588
|
+
"path": "/api/wallet/campaigns/{campaign_id}"
|
|
1589
|
+
},
|
|
1590
|
+
"PatchCampaign": {
|
|
1591
|
+
"request": "pushwoosh.walletcampaign.v1.PatchCampaignRequest",
|
|
1592
|
+
"response": "pushwoosh.walletcampaign.v1.PatchCampaignResponse",
|
|
1593
|
+
"method": "patch",
|
|
1594
|
+
"path": "/api/wallet/campaigns/{campaign_id}"
|
|
1595
|
+
},
|
|
1596
|
+
"DeleteCampaign": {
|
|
1597
|
+
"request": "pushwoosh.walletcampaign.v1.DeleteCampaignRequest",
|
|
1598
|
+
"response": "pushwoosh.walletcampaign.v1.DeleteCampaignResponse",
|
|
1599
|
+
"method": "delete",
|
|
1600
|
+
"path": "/api/wallet/campaigns/{campaign_id}"
|
|
1601
|
+
},
|
|
1602
|
+
"ListCampaignRevisions": {
|
|
1603
|
+
"request": "pushwoosh.walletcampaign.v1.ListCampaignRevisionsRequest",
|
|
1604
|
+
"response": "pushwoosh.walletcampaign.v1.ListCampaignRevisionsResponse",
|
|
1605
|
+
"method": "get",
|
|
1606
|
+
"path": "/api/wallet/campaigns/{campaign_id}/revisions"
|
|
1607
|
+
},
|
|
1608
|
+
"IssuePass": {
|
|
1609
|
+
"request": "pushwoosh.walletcampaign.v1.IssuePassRequest",
|
|
1610
|
+
"response": "pushwoosh.walletcampaign.v1.IssuePassResponse",
|
|
1611
|
+
"method": "post",
|
|
1612
|
+
"path": "/api/wallet/campaigns/{campaign_id}/passes"
|
|
1613
|
+
},
|
|
1614
|
+
"ListCampaignPasses": {
|
|
1615
|
+
"request": "pushwoosh.walletcampaign.v1.ListCampaignPassesRequest",
|
|
1616
|
+
"response": "pushwoosh.walletcampaign.v1.ListCampaignPassesResponse",
|
|
1617
|
+
"method": "get",
|
|
1618
|
+
"path": "/api/wallet/campaigns/{campaign_id}/passes"
|
|
1619
|
+
},
|
|
1620
|
+
"AttachPasses": {
|
|
1621
|
+
"request": "pushwoosh.walletcampaign.v1.AttachPassesRequest",
|
|
1622
|
+
"response": "pushwoosh.walletcampaign.v1.AttachPassesResponse",
|
|
1623
|
+
"method": "post",
|
|
1624
|
+
"path": "/api/wallet/campaigns/{campaign_id}/attach"
|
|
1625
|
+
},
|
|
1626
|
+
"GetJob": {
|
|
1627
|
+
"request": "pushwoosh.walletcampaign.v1.GetJobRequest",
|
|
1628
|
+
"response": "pushwoosh.walletcampaign.v1.GetJobResponse",
|
|
1629
|
+
"method": "get",
|
|
1630
|
+
"path": "/api/wallet/jobs/{job_id}"
|
|
1631
|
+
},
|
|
1632
|
+
"RetryJob": {
|
|
1633
|
+
"request": "pushwoosh.walletcampaign.v1.RetryJobRequest",
|
|
1634
|
+
"response": "pushwoosh.walletcampaign.v1.RetryJobResponse",
|
|
1635
|
+
"method": "post",
|
|
1636
|
+
"path": "/api/wallet/jobs/{job_id}/retry"
|
|
1637
|
+
},
|
|
1638
|
+
"CancelJob": {
|
|
1639
|
+
"request": "pushwoosh.walletcampaign.v1.CancelJobRequest",
|
|
1640
|
+
"response": "pushwoosh.walletcampaign.v1.CancelJobResponse",
|
|
1641
|
+
"method": "post",
|
|
1642
|
+
"path": "/api/wallet/jobs/{job_id}/cancel"
|
|
1643
|
+
},
|
|
1644
|
+
"DeletePassOverride": {
|
|
1645
|
+
"request": "pushwoosh.walletcampaign.v1.DeletePassOverrideRequest",
|
|
1646
|
+
"response": "pushwoosh.walletcampaign.v1.DeletePassOverrideResponse",
|
|
1647
|
+
"method": "delete",
|
|
1648
|
+
"path": "/api/wallet/passes/{serial_number}/overrides/{field_key}"
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
},
|
|
1652
|
+
"pushwoosh.walletcampaign.v1.Platform": {
|
|
1653
|
+
"type": "E",
|
|
1654
|
+
"values": [
|
|
1655
|
+
"PLATFORM_UNSPECIFIED",
|
|
1656
|
+
"PLATFORM_APPLE",
|
|
1657
|
+
"PLATFORM_GOOGLE"
|
|
1658
|
+
]
|
|
1659
|
+
},
|
|
1660
|
+
"pushwoosh.walletcampaign.v1.CampaignStatus": {
|
|
1661
|
+
"type": "E",
|
|
1662
|
+
"values": [
|
|
1663
|
+
"CAMPAIGN_STATUS_UNSPECIFIED",
|
|
1664
|
+
"CAMPAIGN_STATUS_DRAFT",
|
|
1665
|
+
"CAMPAIGN_STATUS_ACTIVE",
|
|
1666
|
+
"CAMPAIGN_STATUS_ARCHIVED"
|
|
1667
|
+
]
|
|
1668
|
+
},
|
|
1669
|
+
"pushwoosh.walletcampaign.v1.JobStatus": {
|
|
1670
|
+
"type": "E",
|
|
1671
|
+
"values": [
|
|
1672
|
+
"JOB_STATUS_UNSPECIFIED",
|
|
1673
|
+
"JOB_STATUS_QUEUED",
|
|
1674
|
+
"JOB_STATUS_RUNNING",
|
|
1675
|
+
"JOB_STATUS_DONE",
|
|
1676
|
+
"JOB_STATUS_FAILED",
|
|
1677
|
+
"JOB_STATUS_CANCELLED"
|
|
1678
|
+
]
|
|
1679
|
+
},
|
|
1680
|
+
"pushwoosh.walletcampaign.v1.PersonalFieldSource": {
|
|
1681
|
+
"type": "E",
|
|
1682
|
+
"values": [
|
|
1683
|
+
"PERSONAL_FIELD_SOURCE_UNSPECIFIED",
|
|
1684
|
+
"PERSONAL_FIELD_SOURCE_TAG",
|
|
1685
|
+
"PERSONAL_FIELD_SOURCE_INPUT"
|
|
1686
|
+
]
|
|
1687
|
+
},
|
|
1688
|
+
"pushwoosh.walletcampaign.v1.PersonalFieldSpec": {
|
|
1689
|
+
"type": "I",
|
|
1690
|
+
"fields": {
|
|
1691
|
+
"key": {
|
|
1692
|
+
"type": "string"
|
|
1693
|
+
},
|
|
1694
|
+
"source": {
|
|
1695
|
+
"type": "pushwoosh.walletcampaign.v1.PersonalFieldSource"
|
|
1696
|
+
},
|
|
1697
|
+
"tag": {
|
|
1698
|
+
"type": "string"
|
|
1699
|
+
},
|
|
1700
|
+
"format": {
|
|
1701
|
+
"type": "string"
|
|
1702
|
+
},
|
|
1703
|
+
"fallback": {
|
|
1704
|
+
"type": "string"
|
|
1705
|
+
},
|
|
1706
|
+
"defaultValue": {
|
|
1707
|
+
"type": "string"
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
},
|
|
1711
|
+
"pushwoosh.walletcampaign.v1.Campaign": {
|
|
1712
|
+
"type": "I",
|
|
1713
|
+
"fields": {
|
|
1714
|
+
"campaignId": {
|
|
1715
|
+
"type": "number"
|
|
1716
|
+
},
|
|
1717
|
+
"applicationCode": {
|
|
1718
|
+
"type": "string"
|
|
1719
|
+
},
|
|
1720
|
+
"platform": {
|
|
1721
|
+
"type": "pushwoosh.walletcampaign.v1.Platform"
|
|
1722
|
+
},
|
|
1723
|
+
"passStyle": {
|
|
1724
|
+
"type": "string"
|
|
1725
|
+
},
|
|
1726
|
+
"name": {
|
|
1727
|
+
"type": "string"
|
|
1728
|
+
},
|
|
1729
|
+
"description": {
|
|
1730
|
+
"type": "string"
|
|
1731
|
+
},
|
|
1732
|
+
"designJson": {
|
|
1733
|
+
"type": "string"
|
|
1734
|
+
},
|
|
1735
|
+
"sharedFields": {
|
|
1736
|
+
"type": "string",
|
|
1737
|
+
"mapKeyType": "string"
|
|
1738
|
+
},
|
|
1739
|
+
"personalFields": {
|
|
1740
|
+
"type": "pushwoosh.walletcampaign.v1.PersonalFieldSpec",
|
|
1741
|
+
"array": true
|
|
1742
|
+
},
|
|
1743
|
+
"status": {
|
|
1744
|
+
"type": "pushwoosh.walletcampaign.v1.CampaignStatus"
|
|
1745
|
+
},
|
|
1746
|
+
"revision": {
|
|
1747
|
+
"type": "number"
|
|
1748
|
+
},
|
|
1749
|
+
"issuedPasses": {
|
|
1750
|
+
"type": "number"
|
|
1751
|
+
},
|
|
1752
|
+
"activeJobId": {
|
|
1753
|
+
"type": "number"
|
|
1754
|
+
},
|
|
1755
|
+
"createdAt": {
|
|
1756
|
+
"type": "Date"
|
|
1757
|
+
},
|
|
1758
|
+
"updatedAt": {
|
|
1759
|
+
"type": "Date"
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
},
|
|
1763
|
+
"pushwoosh.walletcampaign.v1.CampaignRevision": {
|
|
1764
|
+
"type": "I",
|
|
1765
|
+
"fields": {
|
|
1766
|
+
"revision": {
|
|
1767
|
+
"type": "number"
|
|
1768
|
+
},
|
|
1769
|
+
"actor": {
|
|
1770
|
+
"type": "number"
|
|
1771
|
+
},
|
|
1772
|
+
"diffJson": {
|
|
1773
|
+
"type": "string"
|
|
1774
|
+
},
|
|
1775
|
+
"jobId": {
|
|
1776
|
+
"type": "number"
|
|
1777
|
+
},
|
|
1778
|
+
"jobStatus": {
|
|
1779
|
+
"type": "pushwoosh.walletcampaign.v1.JobStatus"
|
|
1780
|
+
},
|
|
1781
|
+
"createdAt": {
|
|
1782
|
+
"type": "Date"
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1786
|
+
"pushwoosh.walletcampaign.v1.OverrideConflict": {
|
|
1787
|
+
"type": "I",
|
|
1788
|
+
"fields": {
|
|
1789
|
+
"fieldKey": {
|
|
1790
|
+
"type": "string"
|
|
1791
|
+
},
|
|
1792
|
+
"passes": {
|
|
1793
|
+
"type": "number"
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
},
|
|
1797
|
+
"pushwoosh.walletcampaign.v1.UpdateJob": {
|
|
1798
|
+
"type": "I",
|
|
1799
|
+
"fields": {
|
|
1800
|
+
"jobId": {
|
|
1801
|
+
"type": "number"
|
|
1802
|
+
},
|
|
1803
|
+
"campaignId": {
|
|
1804
|
+
"type": "number"
|
|
1805
|
+
},
|
|
1806
|
+
"fromRevision": {
|
|
1807
|
+
"type": "number"
|
|
1808
|
+
},
|
|
1809
|
+
"toRevision": {
|
|
1810
|
+
"type": "number"
|
|
1811
|
+
},
|
|
1812
|
+
"changedFieldKeys": {
|
|
1813
|
+
"type": "string",
|
|
1814
|
+
"array": true
|
|
1815
|
+
},
|
|
1816
|
+
"forceOverwrite": {
|
|
1817
|
+
"type": "boolean"
|
|
1818
|
+
},
|
|
1819
|
+
"status": {
|
|
1820
|
+
"type": "pushwoosh.walletcampaign.v1.JobStatus"
|
|
1821
|
+
},
|
|
1822
|
+
"total": {
|
|
1823
|
+
"type": "number"
|
|
1824
|
+
},
|
|
1825
|
+
"updated": {
|
|
1826
|
+
"type": "number"
|
|
1827
|
+
},
|
|
1828
|
+
"skippedOverride": {
|
|
1829
|
+
"type": "number"
|
|
1830
|
+
},
|
|
1831
|
+
"failed": {
|
|
1832
|
+
"type": "number"
|
|
1833
|
+
},
|
|
1834
|
+
"startedAt": {
|
|
1835
|
+
"type": "Date"
|
|
1836
|
+
},
|
|
1837
|
+
"finishedAt": {
|
|
1838
|
+
"type": "Date"
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
},
|
|
1842
|
+
"pushwoosh.walletcampaign.v1.JobFailure": {
|
|
1843
|
+
"type": "I",
|
|
1844
|
+
"fields": {
|
|
1845
|
+
"passId": {
|
|
1846
|
+
"type": "number"
|
|
1847
|
+
},
|
|
1848
|
+
"serialNumber": {
|
|
1849
|
+
"type": "string"
|
|
1850
|
+
},
|
|
1851
|
+
"userId": {
|
|
1852
|
+
"type": "string"
|
|
1853
|
+
},
|
|
1854
|
+
"attempts": {
|
|
1855
|
+
"type": "number"
|
|
1856
|
+
},
|
|
1857
|
+
"error": {
|
|
1858
|
+
"type": "string"
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
},
|
|
1862
|
+
"pushwoosh.walletcampaign.v1.CampaignPass": {
|
|
1863
|
+
"type": "I",
|
|
1864
|
+
"fields": {
|
|
1865
|
+
"passId": {
|
|
1866
|
+
"type": "number"
|
|
1867
|
+
},
|
|
1868
|
+
"serialNumber": {
|
|
1869
|
+
"type": "string"
|
|
1870
|
+
},
|
|
1871
|
+
"userId": {
|
|
1872
|
+
"type": "string"
|
|
1873
|
+
},
|
|
1874
|
+
"overriddenFields": {
|
|
1875
|
+
"type": "string",
|
|
1876
|
+
"array": true
|
|
1877
|
+
},
|
|
1878
|
+
"lastCampaignRevision": {
|
|
1879
|
+
"type": "number"
|
|
1880
|
+
},
|
|
1881
|
+
"updatedAt": {
|
|
1882
|
+
"type": "Date"
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
},
|
|
1886
|
+
"pushwoosh.walletcampaign.v1.CreateCampaignRequest": {
|
|
1887
|
+
"type": "I",
|
|
1888
|
+
"fields": {
|
|
1889
|
+
"applicationCode": {
|
|
1890
|
+
"type": "string"
|
|
1891
|
+
},
|
|
1892
|
+
"platform": {
|
|
1893
|
+
"type": "pushwoosh.walletcampaign.v1.Platform"
|
|
1894
|
+
},
|
|
1895
|
+
"passStyle": {
|
|
1896
|
+
"type": "string"
|
|
1897
|
+
},
|
|
1898
|
+
"name": {
|
|
1899
|
+
"type": "string"
|
|
1900
|
+
},
|
|
1901
|
+
"description": {
|
|
1902
|
+
"type": "string"
|
|
1903
|
+
},
|
|
1904
|
+
"designJson": {
|
|
1905
|
+
"type": "string"
|
|
1906
|
+
},
|
|
1907
|
+
"sharedFields": {
|
|
1908
|
+
"type": "string",
|
|
1909
|
+
"mapKeyType": "string"
|
|
1910
|
+
},
|
|
1911
|
+
"personalFields": {
|
|
1912
|
+
"type": "pushwoosh.walletcampaign.v1.PersonalFieldSpec",
|
|
1913
|
+
"array": true
|
|
1914
|
+
},
|
|
1915
|
+
"status": {
|
|
1916
|
+
"type": "pushwoosh.walletcampaign.v1.CampaignStatus"
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
},
|
|
1920
|
+
"pushwoosh.walletcampaign.v1.CreateCampaignResponse": {
|
|
1921
|
+
"type": "I",
|
|
1922
|
+
"fields": {
|
|
1923
|
+
"campaign": {
|
|
1924
|
+
"type": "pushwoosh.walletcampaign.v1.Campaign"
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
},
|
|
1928
|
+
"pushwoosh.walletcampaign.v1.ListCampaignsRequest": {
|
|
1929
|
+
"type": "I",
|
|
1930
|
+
"fields": {
|
|
1931
|
+
"applicationCode": {
|
|
1932
|
+
"type": "string"
|
|
1933
|
+
},
|
|
1934
|
+
"status": {
|
|
1935
|
+
"type": "pushwoosh.walletcampaign.v1.CampaignStatus"
|
|
1936
|
+
},
|
|
1937
|
+
"platform": {
|
|
1938
|
+
"type": "pushwoosh.walletcampaign.v1.Platform"
|
|
1939
|
+
},
|
|
1940
|
+
"page": {
|
|
1941
|
+
"type": "number"
|
|
1942
|
+
},
|
|
1943
|
+
"perPage": {
|
|
1944
|
+
"type": "number"
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
},
|
|
1948
|
+
"pushwoosh.walletcampaign.v1.ListCampaignsResponse": {
|
|
1949
|
+
"type": "I",
|
|
1950
|
+
"fields": {
|
|
1951
|
+
"campaigns": {
|
|
1952
|
+
"type": "pushwoosh.walletcampaign.v1.Campaign",
|
|
1953
|
+
"array": true
|
|
1954
|
+
},
|
|
1955
|
+
"total": {
|
|
1956
|
+
"type": "number"
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
},
|
|
1960
|
+
"pushwoosh.walletcampaign.v1.GetCampaignRequest": {
|
|
1961
|
+
"type": "I",
|
|
1962
|
+
"fields": {
|
|
1963
|
+
"campaignId": {
|
|
1964
|
+
"type": "number"
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
},
|
|
1968
|
+
"pushwoosh.walletcampaign.v1.GetCampaignResponse": {
|
|
1969
|
+
"type": "I",
|
|
1970
|
+
"fields": {
|
|
1971
|
+
"campaign": {
|
|
1972
|
+
"type": "pushwoosh.walletcampaign.v1.Campaign"
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
},
|
|
1976
|
+
"pushwoosh.walletcampaign.v1.PatchCampaignRequest": {
|
|
1977
|
+
"type": "I",
|
|
1978
|
+
"fields": {
|
|
1979
|
+
"campaignId": {
|
|
1980
|
+
"type": "number"
|
|
1981
|
+
},
|
|
1982
|
+
"revision": {
|
|
1983
|
+
"type": "number"
|
|
1984
|
+
},
|
|
1985
|
+
"name": {
|
|
1986
|
+
"type": "string"
|
|
1987
|
+
},
|
|
1988
|
+
"description": {
|
|
1989
|
+
"type": "string"
|
|
1990
|
+
},
|
|
1991
|
+
"designJson": {
|
|
1992
|
+
"type": "string"
|
|
1993
|
+
},
|
|
1994
|
+
"sharedFields": {
|
|
1995
|
+
"type": "string",
|
|
1996
|
+
"mapKeyType": "string"
|
|
1997
|
+
},
|
|
1998
|
+
"personalFields": {
|
|
1999
|
+
"type": "pushwoosh.walletcampaign.v1.PersonalFieldSpec",
|
|
2000
|
+
"array": true
|
|
2001
|
+
},
|
|
2002
|
+
"status": {
|
|
2003
|
+
"type": "pushwoosh.walletcampaign.v1.CampaignStatus"
|
|
2004
|
+
},
|
|
2005
|
+
"forceOverwrite": {
|
|
2006
|
+
"type": "boolean"
|
|
2007
|
+
},
|
|
2008
|
+
"dryRun": {
|
|
2009
|
+
"type": "boolean"
|
|
2010
|
+
},
|
|
2011
|
+
"updateMask": {
|
|
2012
|
+
"type": "string",
|
|
2013
|
+
"array": true
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
},
|
|
2017
|
+
"pushwoosh.walletcampaign.v1.PatchCampaignResponse": {
|
|
2018
|
+
"type": "I",
|
|
2019
|
+
"fields": {
|
|
2020
|
+
"jobId": {
|
|
2021
|
+
"type": "number"
|
|
2022
|
+
},
|
|
2023
|
+
"revision": {
|
|
2024
|
+
"type": "number"
|
|
2025
|
+
},
|
|
2026
|
+
"affectedPasses": {
|
|
2027
|
+
"type": "number"
|
|
2028
|
+
},
|
|
2029
|
+
"changedFieldKeys": {
|
|
2030
|
+
"type": "string",
|
|
2031
|
+
"array": true
|
|
2032
|
+
},
|
|
2033
|
+
"overrideConflicts": {
|
|
2034
|
+
"type": "pushwoosh.walletcampaign.v1.OverrideConflict",
|
|
2035
|
+
"array": true
|
|
2036
|
+
},
|
|
2037
|
+
"hasTagBoundFields": {
|
|
2038
|
+
"type": "boolean"
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
},
|
|
2042
|
+
"pushwoosh.walletcampaign.v1.DeleteCampaignRequest": {
|
|
2043
|
+
"type": "I",
|
|
2044
|
+
"fields": {
|
|
2045
|
+
"campaignId": {
|
|
2046
|
+
"type": "number"
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
},
|
|
2050
|
+
"pushwoosh.walletcampaign.v1.DeleteCampaignResponse": {
|
|
2051
|
+
"type": "I",
|
|
2052
|
+
"fields": {
|
|
2053
|
+
"detachedPasses": {
|
|
2054
|
+
"type": "number"
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
},
|
|
2058
|
+
"pushwoosh.walletcampaign.v1.ListCampaignRevisionsRequest": {
|
|
2059
|
+
"type": "I",
|
|
2060
|
+
"fields": {
|
|
2061
|
+
"campaignId": {
|
|
2062
|
+
"type": "number"
|
|
2063
|
+
},
|
|
2064
|
+
"page": {
|
|
2065
|
+
"type": "number"
|
|
2066
|
+
},
|
|
2067
|
+
"perPage": {
|
|
2068
|
+
"type": "number"
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
},
|
|
2072
|
+
"pushwoosh.walletcampaign.v1.ListCampaignRevisionsResponse": {
|
|
2073
|
+
"type": "I",
|
|
2074
|
+
"fields": {
|
|
2075
|
+
"revisions": {
|
|
2076
|
+
"type": "pushwoosh.walletcampaign.v1.CampaignRevision",
|
|
2077
|
+
"array": true
|
|
2078
|
+
},
|
|
2079
|
+
"total": {
|
|
2080
|
+
"type": "number"
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
},
|
|
2084
|
+
"pushwoosh.walletcampaign.v1.IssuePassRequest": {
|
|
2085
|
+
"type": "I",
|
|
2086
|
+
"fields": {
|
|
2087
|
+
"campaignId": {
|
|
2088
|
+
"type": "number"
|
|
2089
|
+
},
|
|
2090
|
+
"userId": {
|
|
2091
|
+
"type": "string"
|
|
2092
|
+
},
|
|
2093
|
+
"personal": {
|
|
2094
|
+
"type": "string",
|
|
2095
|
+
"mapKeyType": "string"
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
},
|
|
2099
|
+
"pushwoosh.walletcampaign.v1.IssuePassResponse": {
|
|
2100
|
+
"type": "I",
|
|
2101
|
+
"fields": {
|
|
2102
|
+
"passId": {
|
|
2103
|
+
"type": "number"
|
|
2104
|
+
},
|
|
2105
|
+
"serialNumber": {
|
|
2106
|
+
"type": "string"
|
|
2107
|
+
},
|
|
2108
|
+
"installLink": {
|
|
2109
|
+
"type": "string"
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
},
|
|
2113
|
+
"pushwoosh.walletcampaign.v1.ListCampaignPassesRequest": {
|
|
2114
|
+
"type": "I",
|
|
2115
|
+
"fields": {
|
|
2116
|
+
"campaignId": {
|
|
2117
|
+
"type": "number"
|
|
2118
|
+
},
|
|
2119
|
+
"query": {
|
|
2120
|
+
"type": "string"
|
|
2121
|
+
},
|
|
2122
|
+
"onlyOverridden": {
|
|
2123
|
+
"type": "boolean"
|
|
2124
|
+
},
|
|
2125
|
+
"onlyBehindRevision": {
|
|
2126
|
+
"type": "boolean"
|
|
2127
|
+
},
|
|
2128
|
+
"page": {
|
|
2129
|
+
"type": "number"
|
|
2130
|
+
},
|
|
2131
|
+
"perPage": {
|
|
2132
|
+
"type": "number"
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
},
|
|
2136
|
+
"pushwoosh.walletcampaign.v1.ListCampaignPassesResponse": {
|
|
2137
|
+
"type": "I",
|
|
2138
|
+
"fields": {
|
|
2139
|
+
"passes": {
|
|
2140
|
+
"type": "pushwoosh.walletcampaign.v1.CampaignPass",
|
|
2141
|
+
"array": true
|
|
2142
|
+
},
|
|
2143
|
+
"total": {
|
|
2144
|
+
"type": "number"
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
},
|
|
2148
|
+
"pushwoosh.walletcampaign.v1.AttachPassesRequest": {
|
|
2149
|
+
"type": "I",
|
|
2150
|
+
"fields": {
|
|
2151
|
+
"campaignId": {
|
|
2152
|
+
"type": "number"
|
|
2153
|
+
},
|
|
2154
|
+
"serialNumbers": {
|
|
2155
|
+
"type": "string",
|
|
2156
|
+
"array": true
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
},
|
|
2160
|
+
"pushwoosh.walletcampaign.v1.AttachRejection": {
|
|
2161
|
+
"type": "I",
|
|
2162
|
+
"fields": {
|
|
2163
|
+
"serialNumber": {
|
|
2164
|
+
"type": "string"
|
|
2165
|
+
},
|
|
2166
|
+
"reason": {
|
|
2167
|
+
"type": "string"
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2170
|
+
},
|
|
2171
|
+
"pushwoosh.walletcampaign.v1.AttachPassesResponse": {
|
|
2172
|
+
"type": "I",
|
|
2173
|
+
"fields": {
|
|
2174
|
+
"attached": {
|
|
2175
|
+
"type": "number"
|
|
2176
|
+
},
|
|
2177
|
+
"rejected": {
|
|
2178
|
+
"type": "pushwoosh.walletcampaign.v1.AttachRejection",
|
|
2179
|
+
"array": true
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
},
|
|
2183
|
+
"pushwoosh.walletcampaign.v1.GetJobRequest": {
|
|
2184
|
+
"type": "I",
|
|
2185
|
+
"fields": {
|
|
2186
|
+
"jobId": {
|
|
2187
|
+
"type": "number"
|
|
2188
|
+
},
|
|
2189
|
+
"failuresPage": {
|
|
2190
|
+
"type": "number"
|
|
2191
|
+
},
|
|
2192
|
+
"failuresPerPage": {
|
|
2193
|
+
"type": "number"
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
},
|
|
2197
|
+
"pushwoosh.walletcampaign.v1.GetJobResponse": {
|
|
2198
|
+
"type": "I",
|
|
2199
|
+
"fields": {
|
|
2200
|
+
"job": {
|
|
2201
|
+
"type": "pushwoosh.walletcampaign.v1.UpdateJob"
|
|
2202
|
+
},
|
|
2203
|
+
"failures": {
|
|
2204
|
+
"type": "pushwoosh.walletcampaign.v1.JobFailure",
|
|
2205
|
+
"array": true
|
|
2206
|
+
},
|
|
2207
|
+
"failuresTotal": {
|
|
2208
|
+
"type": "number"
|
|
2209
|
+
},
|
|
2210
|
+
"etaSeconds": {
|
|
2211
|
+
"type": "number"
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
"pushwoosh.walletcampaign.v1.RetryJobRequest": {
|
|
2216
|
+
"type": "I",
|
|
2217
|
+
"fields": {
|
|
2218
|
+
"jobId": {
|
|
2219
|
+
"type": "number"
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
},
|
|
2223
|
+
"pushwoosh.walletcampaign.v1.RetryJobResponse": {
|
|
2224
|
+
"type": "I",
|
|
2225
|
+
"fields": {
|
|
2226
|
+
"jobId": {
|
|
2227
|
+
"type": "number"
|
|
2228
|
+
},
|
|
2229
|
+
"requeued": {
|
|
2230
|
+
"type": "number"
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
},
|
|
2234
|
+
"pushwoosh.walletcampaign.v1.CancelJobRequest": {
|
|
2235
|
+
"type": "I",
|
|
2236
|
+
"fields": {
|
|
2237
|
+
"jobId": {
|
|
2238
|
+
"type": "number"
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
},
|
|
2242
|
+
"pushwoosh.walletcampaign.v1.CancelJobResponse": {
|
|
2243
|
+
"type": "I",
|
|
2244
|
+
"fields": {
|
|
2245
|
+
"status": {
|
|
2246
|
+
"type": "pushwoosh.walletcampaign.v1.JobStatus"
|
|
2247
|
+
}
|
|
2248
|
+
}
|
|
2249
|
+
},
|
|
2250
|
+
"pushwoosh.walletcampaign.v1.DeletePassOverrideRequest": {
|
|
2251
|
+
"type": "I",
|
|
2252
|
+
"fields": {
|
|
2253
|
+
"applicationCode": {
|
|
2254
|
+
"type": "string"
|
|
2255
|
+
},
|
|
2256
|
+
"serialNumber": {
|
|
2257
|
+
"type": "string"
|
|
2258
|
+
},
|
|
2259
|
+
"fieldKey": {
|
|
2260
|
+
"type": "string"
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
},
|
|
2264
|
+
"pushwoosh.walletcampaign.v1.DeletePassOverrideResponse": {
|
|
2265
|
+
"type": "I",
|
|
2266
|
+
"fields": {
|
|
2267
|
+
"success": {
|
|
2268
|
+
"type": "boolean"
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
},
|
|
1568
2272
|
"pushwoosh.passkit.v1.PassKitWebService": {
|
|
1569
2273
|
"type": "S",
|
|
1570
2274
|
"key": "passKitWeb",
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { GoogleWalletService as pushwoosh_googlewallet_v1_GoogleWalletService } from './pushwoosh_googlewallet_v1';
|
|
2
2
|
import { PassKitService as pushwoosh_passkit_v1_PassKitService } from './pushwoosh_passkit_v1';
|
|
3
|
+
import { WalletCampaignService as pushwoosh_walletcampaign_v1_WalletCampaignService } from './pushwoosh_walletcampaign_v1';
|
|
3
4
|
import { PassKitWebService as pushwoosh_passkit_v1_PassKitWebService } from './pushwoosh_passkit_v1';
|
|
4
5
|
export type API = {
|
|
5
6
|
googleWallet: pushwoosh_googlewallet_v1_GoogleWalletService;
|
|
6
7
|
passKit: pushwoosh_passkit_v1_PassKitService;
|
|
8
|
+
walletCampaign: pushwoosh_walletcampaign_v1_WalletCampaignService;
|
|
7
9
|
passKitWeb: pushwoosh_passkit_v1_PassKitWebService;
|
|
8
10
|
};
|
|
9
11
|
export { data } from './data';
|
package/package.json
CHANGED
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { RpcMethod } from './commonTypes';
|
|
2
|
+
export type WalletCampaignService_CreateCampaign = RpcMethod<CreateCampaignRequest, CreateCampaignResponse>;
|
|
3
|
+
export type WalletCampaignService_ListCampaigns = RpcMethod<ListCampaignsRequest, ListCampaignsResponse>;
|
|
4
|
+
export type WalletCampaignService_GetCampaign = RpcMethod<GetCampaignRequest, GetCampaignResponse>;
|
|
5
|
+
export type WalletCampaignService_PatchCampaign = RpcMethod<PatchCampaignRequest, PatchCampaignResponse>;
|
|
6
|
+
export type WalletCampaignService_DeleteCampaign = RpcMethod<DeleteCampaignRequest, DeleteCampaignResponse>;
|
|
7
|
+
export type WalletCampaignService_ListCampaignRevisions = RpcMethod<ListCampaignRevisionsRequest, ListCampaignRevisionsResponse>;
|
|
8
|
+
export type WalletCampaignService_IssuePass = RpcMethod<IssuePassRequest, IssuePassResponse>;
|
|
9
|
+
export type WalletCampaignService_ListCampaignPasses = RpcMethod<ListCampaignPassesRequest, ListCampaignPassesResponse>;
|
|
10
|
+
export type WalletCampaignService_AttachPasses = RpcMethod<AttachPassesRequest, AttachPassesResponse>;
|
|
11
|
+
export type WalletCampaignService_GetJob = RpcMethod<GetJobRequest, GetJobResponse>;
|
|
12
|
+
export type WalletCampaignService_RetryJob = RpcMethod<RetryJobRequest, RetryJobResponse>;
|
|
13
|
+
export type WalletCampaignService_CancelJob = RpcMethod<CancelJobRequest, CancelJobResponse>;
|
|
14
|
+
export type WalletCampaignService_DeletePassOverride = RpcMethod<DeletePassOverrideRequest, DeletePassOverrideResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Wallet Campaign Service - a campaign is the master pass: it owns the design
|
|
17
|
+
* and the shared field values, issued passes hold only what is theirs.
|
|
18
|
+
*/
|
|
19
|
+
export interface WalletCampaignService {
|
|
20
|
+
CreateCampaign: WalletCampaignService_CreateCampaign;
|
|
21
|
+
ListCampaigns: WalletCampaignService_ListCampaigns;
|
|
22
|
+
GetCampaign: WalletCampaignService_GetCampaign;
|
|
23
|
+
/**
|
|
24
|
+
* Patch the campaign and propagate shared field changes to its passes.
|
|
25
|
+
* Answers 202: delivery runs in a job. dry_run only reports the impact.
|
|
26
|
+
*/
|
|
27
|
+
PatchCampaign: WalletCampaignService_PatchCampaign;
|
|
28
|
+
/**
|
|
29
|
+
* Delete the campaign. Shared values are materialized into its passes first,
|
|
30
|
+
* so already issued passes keep working as standalone.
|
|
31
|
+
*/
|
|
32
|
+
DeleteCampaign: WalletCampaignService_DeleteCampaign;
|
|
33
|
+
ListCampaignRevisions: WalletCampaignService_ListCampaignRevisions;
|
|
34
|
+
/**
|
|
35
|
+
* Issue one pass from the campaign: only personal values travel in, shared
|
|
36
|
+
* ones come from the campaign at render time.
|
|
37
|
+
*/
|
|
38
|
+
IssuePass: WalletCampaignService_IssuePass;
|
|
39
|
+
ListCampaignPasses: WalletCampaignService_ListCampaignPasses;
|
|
40
|
+
/**
|
|
41
|
+
* Attach standalone passes to the campaign. Values differing from the
|
|
42
|
+
* campaign become overrides instead of being silently replaced.
|
|
43
|
+
*/
|
|
44
|
+
AttachPasses: WalletCampaignService_AttachPasses;
|
|
45
|
+
GetJob: WalletCampaignService_GetJob;
|
|
46
|
+
RetryJob: WalletCampaignService_RetryJob;
|
|
47
|
+
CancelJob: WalletCampaignService_CancelJob;
|
|
48
|
+
/** Drop one override so the field takes the campaign value again. */
|
|
49
|
+
DeletePassOverride: WalletCampaignService_DeletePassOverride;
|
|
50
|
+
}
|
|
51
|
+
export type Platform = 'PLATFORM_UNSPECIFIED' | 'PLATFORM_APPLE' | 'PLATFORM_GOOGLE';
|
|
52
|
+
export type CampaignStatus = 'CAMPAIGN_STATUS_UNSPECIFIED' | 'CAMPAIGN_STATUS_DRAFT' | 'CAMPAIGN_STATUS_ACTIVE' | 'CAMPAIGN_STATUS_ARCHIVED';
|
|
53
|
+
export type JobStatus = 'JOB_STATUS_UNSPECIFIED' | 'JOB_STATUS_QUEUED' | 'JOB_STATUS_RUNNING' | 'JOB_STATUS_DONE' | 'JOB_STATUS_FAILED' | 'JOB_STATUS_CANCELLED';
|
|
54
|
+
/** PersonalFieldSource says where an issued pass gets the value of a personal field. */
|
|
55
|
+
export type PersonalFieldSource = 'PERSONAL_FIELD_SOURCE_UNSPECIFIED' | 'PERSONAL_FIELD_SOURCE_TAG' | 'PERSONAL_FIELD_SOURCE_INPUT';
|
|
56
|
+
export type PersonalFieldSpec = {
|
|
57
|
+
key: string;
|
|
58
|
+
source: PersonalFieldSource;
|
|
59
|
+
/** tag name when source is TAG */
|
|
60
|
+
tag: string;
|
|
61
|
+
format: string;
|
|
62
|
+
fallback: string;
|
|
63
|
+
defaultValue: string;
|
|
64
|
+
};
|
|
65
|
+
export type Campaign = {
|
|
66
|
+
campaignId: number;
|
|
67
|
+
applicationCode: string;
|
|
68
|
+
platform: Platform;
|
|
69
|
+
passStyle: string;
|
|
70
|
+
name: string;
|
|
71
|
+
description: string;
|
|
72
|
+
/**
|
|
73
|
+
* Pass template as built in the designer: colors, logo, images, barcode
|
|
74
|
+
* format, links, locations and the field layout. Same shape as a pass.
|
|
75
|
+
*/
|
|
76
|
+
designJson: string;
|
|
77
|
+
sharedFields: Record<string, string>;
|
|
78
|
+
personalFields: PersonalFieldSpec[];
|
|
79
|
+
status: CampaignStatus;
|
|
80
|
+
revision: number;
|
|
81
|
+
issuedPasses: number;
|
|
82
|
+
activeJobId: number;
|
|
83
|
+
createdAt: Date;
|
|
84
|
+
updatedAt: Date;
|
|
85
|
+
};
|
|
86
|
+
export type CampaignRevision = {
|
|
87
|
+
revision: number;
|
|
88
|
+
actor: number;
|
|
89
|
+
diffJson: string;
|
|
90
|
+
jobId: number;
|
|
91
|
+
jobStatus: JobStatus;
|
|
92
|
+
createdAt: Date;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* OverrideConflict reports how many passes pin a field by hand, so the save
|
|
96
|
+
* dialog can offer "update the rest" versus "overwrite everything".
|
|
97
|
+
*/
|
|
98
|
+
export type OverrideConflict = {
|
|
99
|
+
fieldKey: string;
|
|
100
|
+
passes: number;
|
|
101
|
+
};
|
|
102
|
+
export type UpdateJob = {
|
|
103
|
+
jobId: number;
|
|
104
|
+
campaignId: number;
|
|
105
|
+
fromRevision: number;
|
|
106
|
+
toRevision: number;
|
|
107
|
+
changedFieldKeys: string[];
|
|
108
|
+
forceOverwrite: boolean;
|
|
109
|
+
status: JobStatus;
|
|
110
|
+
total: number;
|
|
111
|
+
updated: number;
|
|
112
|
+
skippedOverride: number;
|
|
113
|
+
failed: number;
|
|
114
|
+
startedAt: Date;
|
|
115
|
+
finishedAt: Date;
|
|
116
|
+
};
|
|
117
|
+
export type JobFailure = {
|
|
118
|
+
passId: number;
|
|
119
|
+
serialNumber: string;
|
|
120
|
+
userId: string;
|
|
121
|
+
attempts: number;
|
|
122
|
+
error: string;
|
|
123
|
+
};
|
|
124
|
+
export type CampaignPass = {
|
|
125
|
+
passId: number;
|
|
126
|
+
serialNumber: string;
|
|
127
|
+
userId: string;
|
|
128
|
+
overriddenFields: string[];
|
|
129
|
+
lastCampaignRevision: number;
|
|
130
|
+
updatedAt: Date;
|
|
131
|
+
};
|
|
132
|
+
export type CreateCampaignRequest = {
|
|
133
|
+
applicationCode: string;
|
|
134
|
+
platform: Platform;
|
|
135
|
+
passStyle: string;
|
|
136
|
+
name: string;
|
|
137
|
+
description: string;
|
|
138
|
+
designJson: string;
|
|
139
|
+
sharedFields: Record<string, string>;
|
|
140
|
+
personalFields: PersonalFieldSpec[];
|
|
141
|
+
status: CampaignStatus;
|
|
142
|
+
};
|
|
143
|
+
export type CreateCampaignResponse = {
|
|
144
|
+
campaign: Campaign;
|
|
145
|
+
};
|
|
146
|
+
export type ListCampaignsRequest = {
|
|
147
|
+
applicationCode: string;
|
|
148
|
+
status: CampaignStatus;
|
|
149
|
+
platform: Platform;
|
|
150
|
+
page: number;
|
|
151
|
+
perPage: number;
|
|
152
|
+
};
|
|
153
|
+
export type ListCampaignsResponse = {
|
|
154
|
+
campaigns: Campaign[];
|
|
155
|
+
total: number;
|
|
156
|
+
};
|
|
157
|
+
export type GetCampaignRequest = {
|
|
158
|
+
campaignId: number;
|
|
159
|
+
};
|
|
160
|
+
export type GetCampaignResponse = {
|
|
161
|
+
campaign: Campaign;
|
|
162
|
+
};
|
|
163
|
+
export type PatchCampaignRequest = {
|
|
164
|
+
campaignId: number;
|
|
165
|
+
/** Revision the editor started from; a stale value is rejected with 409. */
|
|
166
|
+
revision: number;
|
|
167
|
+
name: string;
|
|
168
|
+
description: string;
|
|
169
|
+
designJson: string;
|
|
170
|
+
sharedFields: Record<string, string>;
|
|
171
|
+
personalFields: PersonalFieldSpec[];
|
|
172
|
+
status: CampaignStatus;
|
|
173
|
+
/** Overwrite hand-edited fields too, clearing their override flag. */
|
|
174
|
+
forceOverwrite: boolean;
|
|
175
|
+
/** Report the impact without writing anything. */
|
|
176
|
+
dryRun: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Fields this patch changes. Required: an empty mask is rejected rather than
|
|
179
|
+
* read as "everything", which would wipe what the caller did not send.
|
|
180
|
+
*/
|
|
181
|
+
updateMask: string[];
|
|
182
|
+
};
|
|
183
|
+
export type PatchCampaignResponse = {
|
|
184
|
+
jobId: number;
|
|
185
|
+
revision: number;
|
|
186
|
+
affectedPasses: number;
|
|
187
|
+
changedFieldKeys: string[];
|
|
188
|
+
overrideConflicts: OverrideConflict[];
|
|
189
|
+
/**
|
|
190
|
+
* Set when the campaign has a personal field bound to a tag: its value is
|
|
191
|
+
* resolved on every serve, so it can change without a campaign edit.
|
|
192
|
+
*/
|
|
193
|
+
hasTagBoundFields: boolean;
|
|
194
|
+
};
|
|
195
|
+
export type DeleteCampaignRequest = {
|
|
196
|
+
campaignId: number;
|
|
197
|
+
};
|
|
198
|
+
export type DeleteCampaignResponse = {
|
|
199
|
+
detachedPasses: number;
|
|
200
|
+
};
|
|
201
|
+
export type ListCampaignRevisionsRequest = {
|
|
202
|
+
campaignId: number;
|
|
203
|
+
page: number;
|
|
204
|
+
perPage: number;
|
|
205
|
+
};
|
|
206
|
+
export type ListCampaignRevisionsResponse = {
|
|
207
|
+
revisions: CampaignRevision[];
|
|
208
|
+
total: number;
|
|
209
|
+
};
|
|
210
|
+
export type IssuePassRequest = {
|
|
211
|
+
campaignId: number;
|
|
212
|
+
userId: string;
|
|
213
|
+
personal: Record<string, string>;
|
|
214
|
+
};
|
|
215
|
+
export type IssuePassResponse = {
|
|
216
|
+
passId: number;
|
|
217
|
+
serialNumber: string;
|
|
218
|
+
/** Apple install link or Google save link, depending on the platform. */
|
|
219
|
+
installLink: string;
|
|
220
|
+
};
|
|
221
|
+
export type ListCampaignPassesRequest = {
|
|
222
|
+
campaignId: number;
|
|
223
|
+
query: string;
|
|
224
|
+
onlyOverridden: boolean;
|
|
225
|
+
onlyBehindRevision: boolean;
|
|
226
|
+
page: number;
|
|
227
|
+
perPage: number;
|
|
228
|
+
};
|
|
229
|
+
export type ListCampaignPassesResponse = {
|
|
230
|
+
passes: CampaignPass[];
|
|
231
|
+
total: number;
|
|
232
|
+
};
|
|
233
|
+
export type AttachPassesRequest = {
|
|
234
|
+
campaignId: number;
|
|
235
|
+
serialNumbers: string[];
|
|
236
|
+
};
|
|
237
|
+
export type AttachRejection = {
|
|
238
|
+
serialNumber: string;
|
|
239
|
+
reason: string;
|
|
240
|
+
};
|
|
241
|
+
export type AttachPassesResponse = {
|
|
242
|
+
attached: number;
|
|
243
|
+
rejected: AttachRejection[];
|
|
244
|
+
};
|
|
245
|
+
export type GetJobRequest = {
|
|
246
|
+
jobId: number;
|
|
247
|
+
failuresPage: number;
|
|
248
|
+
failuresPerPage: number;
|
|
249
|
+
};
|
|
250
|
+
export type GetJobResponse = {
|
|
251
|
+
job: UpdateJob;
|
|
252
|
+
failures: JobFailure[];
|
|
253
|
+
failuresTotal: number;
|
|
254
|
+
/** Server-side estimate of the time left, seconds. */
|
|
255
|
+
etaSeconds: number;
|
|
256
|
+
};
|
|
257
|
+
export type RetryJobRequest = {
|
|
258
|
+
jobId: number;
|
|
259
|
+
};
|
|
260
|
+
export type RetryJobResponse = {
|
|
261
|
+
jobId: number;
|
|
262
|
+
requeued: number;
|
|
263
|
+
};
|
|
264
|
+
export type CancelJobRequest = {
|
|
265
|
+
jobId: number;
|
|
266
|
+
};
|
|
267
|
+
export type CancelJobResponse = {
|
|
268
|
+
status: JobStatus;
|
|
269
|
+
};
|
|
270
|
+
export type DeletePassOverrideRequest = {
|
|
271
|
+
applicationCode: string;
|
|
272
|
+
serialNumber: string;
|
|
273
|
+
fieldKey: string;
|
|
274
|
+
};
|
|
275
|
+
export type DeletePassOverrideResponse = {
|
|
276
|
+
success: boolean;
|
|
277
|
+
};
|