@puntjes/sdk 1.0.0 → 2.1.0

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.
@@ -1,4 +1,5 @@
1
1
  export declare const ErrorCode: {
2
+ readonly AppleWalletUnavailable: "APPLE_WALLET_UNAVAILABLE";
2
3
  readonly BatchTooLarge: "BATCH_TOO_LARGE";
3
4
  readonly BranchInactive: "BRANCH_INACTIVE";
4
5
  readonly BranchNotFound: "BRANCH_NOT_FOUND";
@@ -1,5 +1,6 @@
1
1
  // This file is generated by tools/codegen.ts from the x-error-codes of spec/api.json. Do not edit.
2
2
  export const ErrorCode = {
3
+ AppleWalletUnavailable: 'APPLE_WALLET_UNAVAILABLE',
3
4
  BatchTooLarge: 'BATCH_TOO_LARGE',
4
5
  BranchInactive: 'BRANCH_INACTIVE',
5
6
  BranchNotFound: 'BRANCH_NOT_FOUND',
@@ -53,6 +54,7 @@ export const ErrorCode = {
53
54
  WalletNotFound: 'WALLET_NOT_FOUND',
54
55
  };
55
56
  export const errorCodeStatus = {
57
+ APPLE_WALLET_UNAVAILABLE: 503,
56
58
  BATCH_TOO_LARGE: 422,
57
59
  BRANCH_INACTIVE: 422,
58
60
  BRANCH_NOT_FOUND: 422,
@@ -1901,6 +1901,10 @@ export type DownloadWalletPassErrors = {
1901
1901
  * Something went wrong on our side. Quote the request_id when you report it.
1902
1902
  */
1903
1903
  500: ErrorResponse;
1904
+ /**
1905
+ * A service the request needs is not ready yet. Retry after the seconds in the Retry-After header.
1906
+ */
1907
+ 503: ErrorResponse;
1904
1908
  };
1905
1909
  export type DownloadWalletPassError = DownloadWalletPassErrors[keyof DownloadWalletPassErrors];
1906
1910
  export type DownloadWalletPassResponses = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puntjes/sdk",
3
- "version": "1.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "The official TypeScript client for the Puntjes loyalty API.",
5
5
  "license": "MIT",
6
6
  "type": "module",