@puntjes/sdk 2.2.0 → 2.4.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.
package/README.md CHANGED
@@ -130,7 +130,10 @@ to `fix:` when the regenerated code changes, so release-please ships it as its o
130
130
  - `npm run generate` regenerates it: hey-api, then `tools/codegen.ts` for the `ErrorCode` list. hey-api is pinned to
131
131
  an exact version, and TypeScript is pinned to 5 beside it, because hey-api fails under TypeScript 7.
132
132
  - When Puntjes publishes a new API spec, `.github/workflows/regenerate.yml` opens a PR with the new code. A minor or
133
- patch spec merges itself when CI is green; a major one waits for a person.
133
+ patch spec merges itself when CI is green; a major one waits for a person. CI also compares the public API with the
134
+ last release on npm (`tools/bc-check.ts`). A PR that removes or changes a public declaration fails until its title
135
+ is `feat!:` or `fix!:`, or its body has a `BREAKING CHANGE:` line. A new choice in a union of literals, such as a
136
+ new `locale`, is not a change: it ships in a minor release.
134
137
  - `.github/workflows/release.yml` runs release-please. Its release PR merges itself when CI is green, and the tag
135
138
  publishes the package to npm with provenance.
136
139
 
@@ -5,9 +5,13 @@ export declare const ErrorCode: {
5
5
  readonly BranchNotFound: "BRANCH_NOT_FOUND";
6
6
  readonly BranchRequired: "BRANCH_REQUIRED";
7
7
  readonly CardSendThrottled: "CARD_SEND_THROTTLED";
8
+ readonly ClientLimitReached: "CLIENT_LIMIT_REACHED";
9
+ readonly ClientNotPartnerMade: "CLIENT_NOT_PARTNER_MADE";
8
10
  readonly CodeAlreadyUsed: "CODE_ALREADY_USED";
9
11
  readonly CodeCancelled: "CODE_CANCELLED";
10
12
  readonly CodeExpired: "CODE_EXPIRED";
13
+ readonly ConnectionExpired: "CONNECTION_EXPIRED";
14
+ readonly ConnectionNotFound: "CONNECTION_NOT_FOUND";
11
15
  readonly CustomerAlreadyLinked: "CUSTOMER_ALREADY_LINKED";
12
16
  readonly CustomerDeactivated: "CUSTOMER_DEACTIVATED";
13
17
  readonly CustomerEmailSuppressed: "CUSTOMER_EMAIL_SUPPRESSED";
@@ -15,12 +19,14 @@ export declare const ErrorCode: {
15
19
  readonly CustomerNotFound: "CUSTOMER_NOT_FOUND";
16
20
  readonly ExternalIdDuplicate: "EXTERNAL_ID_DUPLICATE";
17
21
  readonly ExternalIdNotFound: "EXTERNAL_ID_NOT_FOUND";
22
+ readonly FeatureNotEnabled: "FEATURE_NOT_ENABLED";
18
23
  readonly Forbidden: "FORBIDDEN";
19
24
  readonly IdempotencyKeyConflict: "IDEMPOTENCY_KEY_CONFLICT";
20
25
  readonly IdentifierDuplicate: "IDENTIFIER_DUPLICATE";
21
26
  readonly InsufficientBalance: "INSUFFICIENT_BALANCE";
22
27
  readonly InternalError: "INTERNAL_ERROR";
23
28
  readonly InvalidClient: "INVALID_CLIENT";
29
+ readonly InvalidClientSecret: "INVALID_CLIENT_SECRET";
24
30
  readonly InvalidJson: "INVALID_JSON";
25
31
  readonly LoyaltyCardNotFound: "LOYALTY_CARD_NOT_FOUND";
26
32
  readonly MarketingConsentUnderAge: "MARKETING_CONSENT_UNDER_AGE";
@@ -49,6 +55,7 @@ export declare const ErrorCode: {
49
55
  readonly VerificationFailed: "VERIFICATION_FAILED";
50
56
  readonly VoucherAlreadyUsed: "VOUCHER_ALREADY_USED";
51
57
  readonly VoucherExpired: "VOUCHER_EXPIRED";
58
+ readonly VoucherGroupRequired: "VOUCHER_GROUP_REQUIRED";
52
59
  readonly VoucherNotFound: "VOUCHER_NOT_FOUND";
53
60
  readonly WalletNotFound: "WALLET_NOT_FOUND";
54
61
  };
@@ -6,9 +6,13 @@ export const ErrorCode = {
6
6
  BranchNotFound: 'BRANCH_NOT_FOUND',
7
7
  BranchRequired: 'BRANCH_REQUIRED',
8
8
  CardSendThrottled: 'CARD_SEND_THROTTLED',
9
+ ClientLimitReached: 'CLIENT_LIMIT_REACHED',
10
+ ClientNotPartnerMade: 'CLIENT_NOT_PARTNER_MADE',
9
11
  CodeAlreadyUsed: 'CODE_ALREADY_USED',
10
12
  CodeCancelled: 'CODE_CANCELLED',
11
13
  CodeExpired: 'CODE_EXPIRED',
14
+ ConnectionExpired: 'CONNECTION_EXPIRED',
15
+ ConnectionNotFound: 'CONNECTION_NOT_FOUND',
12
16
  CustomerAlreadyLinked: 'CUSTOMER_ALREADY_LINKED',
13
17
  CustomerDeactivated: 'CUSTOMER_DEACTIVATED',
14
18
  CustomerEmailSuppressed: 'CUSTOMER_EMAIL_SUPPRESSED',
@@ -16,12 +20,14 @@ export const ErrorCode = {
16
20
  CustomerNotFound: 'CUSTOMER_NOT_FOUND',
17
21
  ExternalIdDuplicate: 'EXTERNAL_ID_DUPLICATE',
18
22
  ExternalIdNotFound: 'EXTERNAL_ID_NOT_FOUND',
23
+ FeatureNotEnabled: 'FEATURE_NOT_ENABLED',
19
24
  Forbidden: 'FORBIDDEN',
20
25
  IdempotencyKeyConflict: 'IDEMPOTENCY_KEY_CONFLICT',
21
26
  IdentifierDuplicate: 'IDENTIFIER_DUPLICATE',
22
27
  InsufficientBalance: 'INSUFFICIENT_BALANCE',
23
28
  InternalError: 'INTERNAL_ERROR',
24
29
  InvalidClient: 'INVALID_CLIENT',
30
+ InvalidClientSecret: 'INVALID_CLIENT_SECRET',
25
31
  InvalidJson: 'INVALID_JSON',
26
32
  LoyaltyCardNotFound: 'LOYALTY_CARD_NOT_FOUND',
27
33
  MarketingConsentUnderAge: 'MARKETING_CONSENT_UNDER_AGE',
@@ -50,6 +56,7 @@ export const ErrorCode = {
50
56
  VerificationFailed: 'VERIFICATION_FAILED',
51
57
  VoucherAlreadyUsed: 'VOUCHER_ALREADY_USED',
52
58
  VoucherExpired: 'VOUCHER_EXPIRED',
59
+ VoucherGroupRequired: 'VOUCHER_GROUP_REQUIRED',
53
60
  VoucherNotFound: 'VOUCHER_NOT_FOUND',
54
61
  WalletNotFound: 'WALLET_NOT_FOUND',
55
62
  };
@@ -60,9 +67,13 @@ export const errorCodeStatus = {
60
67
  BRANCH_NOT_FOUND: 422,
61
68
  BRANCH_REQUIRED: 422,
62
69
  CARD_SEND_THROTTLED: 429,
70
+ CLIENT_LIMIT_REACHED: 422,
71
+ CLIENT_NOT_PARTNER_MADE: 403,
63
72
  CODE_ALREADY_USED: 422,
64
73
  CODE_CANCELLED: 422,
65
74
  CODE_EXPIRED: 422,
75
+ CONNECTION_EXPIRED: 422,
76
+ CONNECTION_NOT_FOUND: 404,
66
77
  CUSTOMER_ALREADY_LINKED: 409,
67
78
  CUSTOMER_DEACTIVATED: 422,
68
79
  CUSTOMER_EMAIL_SUPPRESSED: 422,
@@ -70,12 +81,14 @@ export const errorCodeStatus = {
70
81
  CUSTOMER_NOT_FOUND: 404,
71
82
  EXTERNAL_ID_DUPLICATE: 409,
72
83
  EXTERNAL_ID_NOT_FOUND: 404,
84
+ FEATURE_NOT_ENABLED: 403,
73
85
  FORBIDDEN: 403,
74
86
  IDEMPOTENCY_KEY_CONFLICT: 422,
75
87
  IDENTIFIER_DUPLICATE: 409,
76
88
  INSUFFICIENT_BALANCE: 422,
77
89
  INTERNAL_ERROR: 500,
78
90
  INVALID_CLIENT: 401,
91
+ INVALID_CLIENT_SECRET: 401,
79
92
  INVALID_JSON: 400,
80
93
  LOYALTY_CARD_NOT_FOUND: 422,
81
94
  MARKETING_CONSENT_UNDER_AGE: 422,
@@ -104,6 +117,7 @@ export const errorCodeStatus = {
104
117
  VERIFICATION_FAILED: 422,
105
118
  VOUCHER_ALREADY_USED: 422,
106
119
  VOUCHER_EXPIRED: 422,
120
+ VOUCHER_GROUP_REQUIRED: 422,
107
121
  VOUCHER_NOT_FOUND: 404,
108
122
  WALLET_NOT_FOUND: 404,
109
123
  };
@@ -1,2 +1,2 @@
1
1
  export { type Options, PuntjesApi } from './sdk.gen.js';
2
- export type { AdjustWalletApiData, AdjustWalletData, AdjustWalletError, AdjustWalletErrors, AdjustWalletResponse, AdjustWalletResponses, AnniversaryCampaignConfigData, BranchReferenceData, BulkUpsertProductsData, BulkUpsertProductsError, BulkUpsertProductsErrors, BulkUpsertProductsResponse, BulkUpsertProductsResponses, BulkUpsertResponseData, BulkUpsertResultData, BulkUpsertSummaryData, CampaignListData, CampaignProductRuleData, CampaignStatusData, CampaignVoucherLookupData, CampaignVoucherVerificationData, CategoryRevenueData, CheckHealthData, CheckHealthError, CheckHealthErrors, CheckHealthResponse, CheckHealthResponses, ClientOptions, CommerceStatisticsData, CreateCustomerData, CreateIdentifierData, CreateProductData, CreateProductData2, CreateProductError, CreateProductErrors, CreateProductResponse, CreateProductResponses, CreateRedemptionData, CreateRewardFromProductData, CreateRewardFromProductData2, CreateRewardFromProductError, CreateRewardFromProductErrors, CreateRewardFromProductResponse, CreateRewardFromProductResponses, CreateTransactionData, CreateTransactionItemData, CustomerData, CustomerDetailData, CustomerIdentifierData, CustomerLookupData, CustomerStatusData, CustomerVoucherData, DateRangeRecurrenceData, DaysOfWeekRecurrenceData, DeleteProductData, DeleteProductError, DeleteProductErrors, DeleteProductResponse, DeleteProductResponses, DiscountGiftData, DiscountRedemptionData, DownloadWalletPassData, DownloadWalletPassError, DownloadWalletPassErrors, DownloadWalletPassResponse, DownloadWalletPassResponses, EarnResultData, ErrorResponse, FixedDiscountData, FreeProductGiftData, FreeProductRedemptionData, GiftProductData, GoogleWalletPassData, ItemizedStatisticsData, LedgerEntryData, LinkCustomerExternalIdData, LinkCustomerExternalIdError, LinkCustomerExternalIdErrors, LinkCustomerExternalIdResponse, LinkCustomerExternalIdResponses, LinkExternalIdData, ListBranchesData, ListBranchesError, ListBranchesErrors, ListBranchesResponse, ListBranchesResponses, ListCampaignsData, ListCampaignsError, ListCampaignsErrors, ListCampaignsResponse, ListCampaignsResponses, ListCustomerRedemptionsData, ListCustomerRedemptionsError, ListCustomerRedemptionsErrors, ListCustomerRedemptionsResponse, ListCustomerRedemptionsResponses, ListCustomerTransactionsData, ListCustomerTransactionsError, ListCustomerTransactionsErrors, ListCustomerTransactionsResponse, ListCustomerTransactionsResponses, ListCustomerVouchersData, ListCustomerVouchersError, ListCustomerVouchersErrors, ListCustomerVouchersResponse, ListCustomerVouchersResponses, ListLedgerEntriesData, ListLedgerEntriesError, ListLedgerEntriesErrors, ListLedgerEntriesResponse, ListLedgerEntriesResponses, ListProductsData, ListProductsError, ListProductsErrors, ListProductsResponse, ListProductsResponses, ListRewardsData, ListRewardsError, ListRewardsErrors, ListRewardsResponse, ListRewardsResponses, LookupCustomerData, LookupCustomerError, LookupCustomerErrors, LookupCustomerResponse, LookupCustomerResponses, LookupRedemptionData, LookupRedemptionError, LookupRedemptionErrors, LookupRedemptionResponse, LookupRedemptionResponses, LookupVoucherData, LookupVoucherError, LookupVoucherErrors, LookupVoucherResponse, LookupVoucherResponses, LoyaltyStatisticsData, MomentCampaignConfigData, NthPurchaseCampaignConfigData, PaginationLinks, PaginationMeta, PercentageDiscountData, PointsGiftData, ProductData, RedeemRewardData, RedeemRewardError, RedeemRewardErrors, RedeemRewardResponse, RedeemRewardResponses, RedemptionCreatedData, RedemptionCustomerData, RedemptionLookupData, RedemptionRewardData, RedemptionVerificationData, RegisterCustomerData, RegisterCustomerError, RegisterCustomerErrors, RegisterCustomerResponse, RegisterCustomerResponses, ReplaceCustomerByExternalIdData, ReplaceCustomerByExternalIdError, ReplaceCustomerByExternalIdErrors, ReplaceCustomerByExternalIdResponse, ReplaceCustomerByExternalIdResponses, RewardCatalogItemData, RewardData, RewardStatusData, SendLoyaltyCardByExternalIdData, SendLoyaltyCardByExternalIdError, SendLoyaltyCardByExternalIdErrors, SendLoyaltyCardByExternalIdResponse, SendLoyaltyCardByExternalIdResponses, SendLoyaltyCardData, SendLoyaltyCardError, SendLoyaltyCardErrors, SendLoyaltyCardRequestData, SendLoyaltyCardResponse, SendLoyaltyCardResponses, SendLoyaltyCardResultData, ShowCustomerData, ShowCustomerError, ShowCustomerErrors, ShowCustomerResponse, ShowCustomerResponses, ShowMeData, ShowMeError, ShowMeErrors, ShowMeResponse, ShowMeResponses, ShowProductData, ShowProductError, ShowProductErrors, ShowProductResponse, ShowProductResponses, ShowStatisticsData, ShowStatisticsError, ShowStatisticsErrors, ShowStatisticsResponse, ShowStatisticsResponses, ShowWalletData, ShowWalletError, ShowWalletErrors, ShowWalletResponse, ShowWalletResponses, SpecificDatesRecurrenceData, StatisticsApiData, StatisticsPeriodData, SubmitTransactionData, SubmitTransactionError, SubmitTransactionErrors, SubmitTransactionResponse, SubmitTransactionResponses, TopProductData, TransactionCampaignConfigData, TransactionData, TransactionItemData, UpdateCustomerByExternalIdData, UpdateCustomerByExternalIdError, UpdateCustomerByExternalIdErrors, UpdateCustomerByExternalIdResponse, UpdateCustomerByExternalIdResponses, UpdateCustomerData, UpdateProductData, UpdateProductData2, UpdateProductError, UpdateProductErrors, UpdateProductResponse, UpdateProductResponses, UpsertProductData, UpsertProductData2, UpsertProductError, UpsertProductErrors, UpsertProductResponse, UpsertProductResponses, VendorBrandingData, VerifyCampaignVoucherData, VerifyRedemptionData, VerifyRedemptionData2, VerifyRedemptionError, VerifyRedemptionErrors, VerifyRedemptionResponse, VerifyRedemptionResponses, VerifyVoucherData, VerifyVoucherError, VerifyVoucherErrors, VerifyVoucherResponse, VerifyVoucherResponses, VolumeBucketData, VoucherFixedDiscountData, VoucherGiftProductData, VoucherPercentageDiscountData, WalletData, WinBackCampaignConfigData } from './types.gen.js';
2
+ export type { AdjustWalletApiData, AdjustWalletData, AdjustWalletError, AdjustWalletErrors, AdjustWalletResponse, AdjustWalletResponses, AnniversaryCampaignConfigData, BranchReferenceData, BulkUpsertProductsData, BulkUpsertProductsError, BulkUpsertProductsErrors, BulkUpsertProductsResponse, BulkUpsertProductsResponses, BulkUpsertResponseData, BulkUpsertResultData, BulkUpsertSummaryData, CampaignListData, CampaignProductRuleData, CampaignStatusData, CampaignVoucherLookupData, CampaignVoucherVerificationData, CategoryRevenueData, ChangeCustomerExternalIdData, ChangeCustomerExternalIdError, ChangeCustomerExternalIdErrors, ChangeCustomerExternalIdResponse, ChangeCustomerExternalIdResponses, ChangeExternalIdData, CheckHealthData, CheckHealthError, CheckHealthErrors, CheckHealthResponse, CheckHealthResponses, ClientOptions, ClientSecretData, CommerceStatisticsData, CreateCustomerData, CreateIdentifierData, CreatePartnerApiClientData, CreatePartnerApiClientData2, CreatePartnerApiClientError, CreatePartnerApiClientErrors, CreatePartnerApiClientResponse, CreatePartnerApiClientResponses, CreateProductData, CreateProductData2, CreateProductError, CreateProductErrors, CreateProductResponse, CreateProductResponses, CreateRedemptionData, CreateRewardFromProductData, CreateRewardFromProductData2, CreateRewardFromProductError, CreateRewardFromProductErrors, CreateRewardFromProductResponse, CreateRewardFromProductResponses, CreateTransactionData, CreateTransactionItemData, CustomerData, CustomerDetailData, CustomerGroupReferenceData, CustomerIdentifierData, CustomerLookupData, CustomerStatusData, CustomerVoucherData, DateRangeRecurrenceData, DaysOfWeekRecurrenceData, DeleteClientData, DeleteClientError, DeleteClientErrors, DeleteClientResponse, DeleteClientResponses, DeleteProductData, DeleteProductError, DeleteProductErrors, DeleteProductResponse, DeleteProductResponses, DiscountGiftData, DiscountRedemptionData, DownloadWalletPassData, DownloadWalletPassError, DownloadWalletPassErrors, DownloadWalletPassResponse, DownloadWalletPassResponses, EarnResultData, ErrorResponse, FixedDiscountData, FreeProductGiftData, FreeProductRedemptionData, GiftProductData, GoogleWalletPassData, ItemizedStatisticsData, LedgerEntryData, LinkCustomerExternalIdData, LinkCustomerExternalIdError, LinkCustomerExternalIdErrors, LinkCustomerExternalIdResponse, LinkCustomerExternalIdResponses, LinkExternalIdData, ListBranchesData, ListBranchesError, ListBranchesErrors, ListBranchesResponse, ListBranchesResponses, ListCampaignsData, ListCampaignsError, ListCampaignsErrors, ListCampaignsResponse, ListCampaignsResponses, ListCustomerRedemptionsData, ListCustomerRedemptionsError, ListCustomerRedemptionsErrors, ListCustomerRedemptionsResponse, ListCustomerRedemptionsResponses, ListCustomerTransactionsData, ListCustomerTransactionsError, ListCustomerTransactionsErrors, ListCustomerTransactionsResponse, ListCustomerTransactionsResponses, ListCustomerVouchersData, ListCustomerVouchersError, ListCustomerVouchersErrors, ListCustomerVouchersResponse, ListCustomerVouchersResponses, ListLedgerEntriesData, ListLedgerEntriesError, ListLedgerEntriesErrors, ListLedgerEntriesResponse, ListLedgerEntriesResponses, ListProductsData, ListProductsError, ListProductsErrors, ListProductsResponse, ListProductsResponses, ListRewardsData, ListRewardsError, ListRewardsErrors, ListRewardsResponse, ListRewardsResponses, LookupCustomerData, LookupCustomerError, LookupCustomerErrors, LookupCustomerResponse, LookupCustomerResponses, LookupRedemptionData, LookupRedemptionError, LookupRedemptionErrors, LookupRedemptionResponse, LookupRedemptionResponses, LookupVoucherData, LookupVoucherError, LookupVoucherErrors, LookupVoucherResponse, LookupVoucherResponses, LoyaltyStatisticsData, MergeCustomersApiData, MergeCustomersData, MergeCustomersError, MergeCustomersErrors, MergeCustomersResponse, MergeCustomersResponses, MomentCampaignConfigData, NewClientSecretData, NthPurchaseCampaignConfigData, PaginationLinks, PaginationMeta, PartnerApiClientData, PercentageDiscountData, PointsGiftData, ProductData, RedeemRewardData, RedeemRewardError, RedeemRewardErrors, RedeemRewardResponse, RedeemRewardResponses, RedemptionCreatedData, RedemptionCustomerData, RedemptionLookupData, RedemptionRewardData, RedemptionVerificationData, RegisterCustomerData, RegisterCustomerError, RegisterCustomerErrors, RegisterCustomerResponse, RegisterCustomerResponses, ReplaceCustomerByExternalIdData, ReplaceCustomerByExternalIdError, ReplaceCustomerByExternalIdErrors, ReplaceCustomerByExternalIdResponse, ReplaceCustomerByExternalIdResponses, RewardCatalogItemData, RewardData, RewardStatusData, RotateClientSecretData, RotateClientSecretError, RotateClientSecretErrors, RotateClientSecretResponse, RotateClientSecretResponses, SendLoyaltyCardByExternalIdData, SendLoyaltyCardByExternalIdError, SendLoyaltyCardByExternalIdErrors, SendLoyaltyCardByExternalIdResponse, SendLoyaltyCardByExternalIdResponses, SendLoyaltyCardData, SendLoyaltyCardError, SendLoyaltyCardErrors, SendLoyaltyCardRequestData, SendLoyaltyCardResponse, SendLoyaltyCardResponses, SendLoyaltyCardResultData, ShowCustomerData, ShowCustomerError, ShowCustomerErrors, ShowCustomerResponse, ShowCustomerResponses, ShowMeData, ShowMeError, ShowMeErrors, ShowMeResponse, ShowMeResponses, ShowProductData, ShowProductError, ShowProductErrors, ShowProductResponse, ShowProductResponses, ShowStatisticsData, ShowStatisticsError, ShowStatisticsErrors, ShowStatisticsResponse, ShowStatisticsResponses, ShowWalletData, ShowWalletError, ShowWalletErrors, ShowWalletResponse, ShowWalletResponses, SpecificDatesRecurrenceData, StatisticsApiData, StatisticsPeriodData, SubmitTransactionData, SubmitTransactionError, SubmitTransactionErrors, SubmitTransactionResponse, SubmitTransactionResponses, TopProductData, TransactionCampaignConfigData, TransactionData, TransactionItemData, UpdateCustomerByExternalIdData, UpdateCustomerByExternalIdError, UpdateCustomerByExternalIdErrors, UpdateCustomerByExternalIdResponse, UpdateCustomerByExternalIdResponses, UpdateCustomerData, UpdateProductData, UpdateProductData2, UpdateProductError, UpdateProductErrors, UpdateProductResponse, UpdateProductResponses, UpsertProductData, UpsertProductData2, UpsertProductError, UpsertProductErrors, UpsertProductResponse, UpsertProductResponses, VendorBrandingData, VerifyCampaignVoucherData, VerifyRedemptionData, VerifyRedemptionData2, VerifyRedemptionError, VerifyRedemptionErrors, VerifyRedemptionResponse, VerifyRedemptionResponses, VerifyVoucherData, VerifyVoucherError, VerifyVoucherErrors, VerifyVoucherResponse, VerifyVoucherResponses, VolumeBucketData, VoucherFixedDiscountData, VoucherGiftProductData, VoucherPercentageDiscountData, WalletData, WinBackCampaignConfigData } from './types.gen.js';
@@ -1,5 +1,5 @@
1
1
  import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
2
- import type { AdjustWalletData, AdjustWalletErrors, AdjustWalletResponses, BulkUpsertProductsData, BulkUpsertProductsErrors, BulkUpsertProductsResponses, CheckHealthData, CheckHealthErrors, CheckHealthResponses, CreateProductData2, CreateProductErrors, CreateProductResponses, CreateRewardFromProductData2, CreateRewardFromProductErrors, CreateRewardFromProductResponses, DeleteProductData, DeleteProductErrors, DeleteProductResponses, DownloadWalletPassData, DownloadWalletPassErrors, DownloadWalletPassResponses, LinkCustomerExternalIdData, LinkCustomerExternalIdErrors, LinkCustomerExternalIdResponses, ListBranchesData, ListBranchesErrors, ListBranchesResponses, ListCampaignsData, ListCampaignsErrors, ListCampaignsResponses, ListCustomerRedemptionsData, ListCustomerRedemptionsErrors, ListCustomerRedemptionsResponses, ListCustomerTransactionsData, ListCustomerTransactionsErrors, ListCustomerTransactionsResponses, ListCustomerVouchersData, ListCustomerVouchersErrors, ListCustomerVouchersResponses, ListLedgerEntriesData, ListLedgerEntriesErrors, ListLedgerEntriesResponses, ListProductsData, ListProductsErrors, ListProductsResponses, ListRewardsData, ListRewardsErrors, ListRewardsResponses, LookupCustomerData, LookupCustomerErrors, LookupCustomerResponses, LookupRedemptionData, LookupRedemptionErrors, LookupRedemptionResponses, LookupVoucherData, LookupVoucherErrors, LookupVoucherResponses, RedeemRewardData, RedeemRewardErrors, RedeemRewardResponses, RegisterCustomerData, RegisterCustomerErrors, RegisterCustomerResponses, ReplaceCustomerByExternalIdData, ReplaceCustomerByExternalIdErrors, ReplaceCustomerByExternalIdResponses, SendLoyaltyCardByExternalIdData, SendLoyaltyCardByExternalIdErrors, SendLoyaltyCardByExternalIdResponses, SendLoyaltyCardData, SendLoyaltyCardErrors, SendLoyaltyCardResponses, ShowCustomerData, ShowCustomerErrors, ShowCustomerResponses, ShowMeData, ShowMeErrors, ShowMeResponses, ShowProductData, ShowProductErrors, ShowProductResponses, ShowStatisticsData, ShowStatisticsErrors, ShowStatisticsResponses, ShowWalletData, ShowWalletErrors, ShowWalletResponses, SubmitTransactionData, SubmitTransactionErrors, SubmitTransactionResponses, UpdateCustomerByExternalIdData, UpdateCustomerByExternalIdErrors, UpdateCustomerByExternalIdResponses, UpdateProductData2, UpdateProductErrors, UpdateProductResponses, UpsertProductData2, UpsertProductErrors, UpsertProductResponses, VerifyRedemptionData2, VerifyRedemptionErrors, VerifyRedemptionResponses, VerifyVoucherData, VerifyVoucherErrors, VerifyVoucherResponses } from './types.gen.js';
2
+ import type { AdjustWalletData, AdjustWalletErrors, AdjustWalletResponses, BulkUpsertProductsData, BulkUpsertProductsErrors, BulkUpsertProductsResponses, ChangeCustomerExternalIdData, ChangeCustomerExternalIdErrors, ChangeCustomerExternalIdResponses, CheckHealthData, CheckHealthErrors, CheckHealthResponses, CreatePartnerApiClientData2, CreatePartnerApiClientErrors, CreatePartnerApiClientResponses, CreateProductData2, CreateProductErrors, CreateProductResponses, CreateRewardFromProductData2, CreateRewardFromProductErrors, CreateRewardFromProductResponses, DeleteClientData, DeleteClientErrors, DeleteClientResponses, DeleteProductData, DeleteProductErrors, DeleteProductResponses, DownloadWalletPassData, DownloadWalletPassErrors, DownloadWalletPassResponses, LinkCustomerExternalIdData, LinkCustomerExternalIdErrors, LinkCustomerExternalIdResponses, ListBranchesData, ListBranchesErrors, ListBranchesResponses, ListCampaignsData, ListCampaignsErrors, ListCampaignsResponses, ListCustomerRedemptionsData, ListCustomerRedemptionsErrors, ListCustomerRedemptionsResponses, ListCustomerTransactionsData, ListCustomerTransactionsErrors, ListCustomerTransactionsResponses, ListCustomerVouchersData, ListCustomerVouchersErrors, ListCustomerVouchersResponses, ListLedgerEntriesData, ListLedgerEntriesErrors, ListLedgerEntriesResponses, ListProductsData, ListProductsErrors, ListProductsResponses, ListRewardsData, ListRewardsErrors, ListRewardsResponses, LookupCustomerData, LookupCustomerErrors, LookupCustomerResponses, LookupRedemptionData, LookupRedemptionErrors, LookupRedemptionResponses, LookupVoucherData, LookupVoucherErrors, LookupVoucherResponses, MergeCustomersData, MergeCustomersErrors, MergeCustomersResponses, RedeemRewardData, RedeemRewardErrors, RedeemRewardResponses, RegisterCustomerData, RegisterCustomerErrors, RegisterCustomerResponses, ReplaceCustomerByExternalIdData, ReplaceCustomerByExternalIdErrors, ReplaceCustomerByExternalIdResponses, RotateClientSecretData, RotateClientSecretErrors, RotateClientSecretResponses, SendLoyaltyCardByExternalIdData, SendLoyaltyCardByExternalIdErrors, SendLoyaltyCardByExternalIdResponses, SendLoyaltyCardData, SendLoyaltyCardErrors, SendLoyaltyCardResponses, ShowCustomerData, ShowCustomerErrors, ShowCustomerResponses, ShowMeData, ShowMeErrors, ShowMeResponses, ShowProductData, ShowProductErrors, ShowProductResponses, ShowStatisticsData, ShowStatisticsErrors, ShowStatisticsResponses, ShowWalletData, ShowWalletErrors, ShowWalletResponses, SubmitTransactionData, SubmitTransactionErrors, SubmitTransactionResponses, UpdateCustomerByExternalIdData, UpdateCustomerByExternalIdErrors, UpdateCustomerByExternalIdResponses, UpdateProductData2, UpdateProductErrors, UpdateProductResponses, UpsertProductData2, UpsertProductErrors, UpsertProductResponses, VerifyRedemptionData2, VerifyRedemptionErrors, VerifyRedemptionResponses, VerifyVoucherData, VerifyVoucherErrors, VerifyVoucherResponses } from './types.gen.js';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -36,9 +36,11 @@ export declare class PuntjesApi extends HeyApiClient {
36
36
  updateCustomerByExternalId<ThrowOnError extends boolean = true>(options: Options<UpdateCustomerByExternalIdData, ThrowOnError>): RequestResult<UpdateCustomerByExternalIdResponses, UpdateCustomerByExternalIdErrors, ThrowOnError>;
37
37
  replaceCustomerByExternalId<ThrowOnError extends boolean = true>(options: Options<ReplaceCustomerByExternalIdData, ThrowOnError>): RequestResult<ReplaceCustomerByExternalIdResponses, ReplaceCustomerByExternalIdErrors, ThrowOnError>;
38
38
  linkCustomerExternalId<ThrowOnError extends boolean = true>(options: Options<LinkCustomerExternalIdData, ThrowOnError>): RequestResult<LinkCustomerExternalIdResponses, LinkCustomerExternalIdErrors, ThrowOnError>;
39
+ changeCustomerExternalId<ThrowOnError extends boolean = true>(options: Options<ChangeCustomerExternalIdData, ThrowOnError>): RequestResult<ChangeCustomerExternalIdResponses, ChangeCustomerExternalIdErrors, ThrowOnError>;
39
40
  sendLoyaltyCardByExternalId<ThrowOnError extends boolean = true>(options: Options<SendLoyaltyCardByExternalIdData, ThrowOnError>): RequestResult<SendLoyaltyCardByExternalIdResponses, SendLoyaltyCardByExternalIdErrors, ThrowOnError>;
40
41
  sendLoyaltyCard<ThrowOnError extends boolean = true>(options: Options<SendLoyaltyCardData, ThrowOnError>): RequestResult<SendLoyaltyCardResponses, SendLoyaltyCardErrors, ThrowOnError>;
41
42
  showCustomer<ThrowOnError extends boolean = true>(options: Options<ShowCustomerData, ThrowOnError>): RequestResult<ShowCustomerResponses, ShowCustomerErrors, ThrowOnError>;
43
+ mergeCustomers<ThrowOnError extends boolean = true>(options: Options<MergeCustomersData, ThrowOnError>): RequestResult<MergeCustomersResponses, MergeCustomersErrors, ThrowOnError>;
42
44
  submitTransaction<ThrowOnError extends boolean = true>(options: Options<SubmitTransactionData, ThrowOnError>): RequestResult<SubmitTransactionResponses, SubmitTransactionErrors, ThrowOnError>;
43
45
  listCustomerTransactions<ThrowOnError extends boolean = true>(options: Options<ListCustomerTransactionsData, ThrowOnError>): RequestResult<ListCustomerTransactionsResponses, ListCustomerTransactionsErrors, ThrowOnError>;
44
46
  showWallet<ThrowOnError extends boolean = true>(options: Options<ShowWalletData, ThrowOnError>): RequestResult<ShowWalletResponses, ShowWalletErrors, ThrowOnError>;
@@ -65,6 +67,9 @@ export declare class PuntjesApi extends HeyApiClient {
65
67
  showStatistics<ThrowOnError extends boolean = true>(options?: Options<ShowStatisticsData, ThrowOnError>): RequestResult<ShowStatisticsResponses, ShowStatisticsErrors, ThrowOnError>;
66
68
  showMe<ThrowOnError extends boolean = true>(options?: Options<ShowMeData, ThrowOnError>): RequestResult<ShowMeResponses, ShowMeErrors, ThrowOnError>;
67
69
  listBranches<ThrowOnError extends boolean = true>(options?: Options<ListBranchesData, ThrowOnError>): RequestResult<ListBranchesResponses, ListBranchesErrors, ThrowOnError>;
70
+ createPartnerApiClient<ThrowOnError extends boolean = true>(options: Options<CreatePartnerApiClientData2, ThrowOnError>): RequestResult<CreatePartnerApiClientResponses, CreatePartnerApiClientErrors, ThrowOnError>;
71
+ rotateClientSecret<ThrowOnError extends boolean = true>(options: Options<RotateClientSecretData, ThrowOnError>): RequestResult<RotateClientSecretResponses, RotateClientSecretErrors, ThrowOnError>;
72
+ deleteClient<ThrowOnError extends boolean = true>(options: Options<DeleteClientData, ThrowOnError>): RequestResult<DeleteClientResponses, DeleteClientErrors, ThrowOnError>;
68
73
  checkHealth<ThrowOnError extends boolean = true>(options?: Options<CheckHealthData, ThrowOnError>): RequestResult<CheckHealthResponses, CheckHealthErrors, ThrowOnError>;
69
74
  }
70
75
  export {};
@@ -28,14 +28,22 @@ export class PuntjesApi extends HeyApiClient {
28
28
  }
29
29
  lookupCustomer(options) {
30
30
  return (options?.client ?? this.client).get({
31
- security: [{ scheme: 'bearer', type: 'http' }],
31
+ security: [{
32
+ key: 'oauth2',
33
+ scheme: 'bearer',
34
+ type: 'http'
35
+ }],
32
36
  url: '/customers/lookup',
33
37
  ...options
34
38
  });
35
39
  }
36
40
  registerCustomer(options) {
37
41
  return (options?.client ?? this.client).post({
38
- security: [{ scheme: 'bearer', type: 'http' }],
42
+ security: [{
43
+ key: 'oauth2',
44
+ scheme: 'bearer',
45
+ type: 'http'
46
+ }],
39
47
  url: '/customers',
40
48
  ...options,
41
49
  headers: {
@@ -46,7 +54,11 @@ export class PuntjesApi extends HeyApiClient {
46
54
  }
47
55
  updateCustomerByExternalId(options) {
48
56
  return (options.client ?? this.client).patch({
49
- security: [{ scheme: 'bearer', type: 'http' }],
57
+ security: [{
58
+ key: 'oauth2',
59
+ scheme: 'bearer',
60
+ type: 'http'
61
+ }],
50
62
  url: '/customers/by-external-id/{externalId}',
51
63
  ...options,
52
64
  headers: {
@@ -57,7 +69,11 @@ export class PuntjesApi extends HeyApiClient {
57
69
  }
58
70
  replaceCustomerByExternalId(options) {
59
71
  return (options.client ?? this.client).put({
60
- security: [{ scheme: 'bearer', type: 'http' }],
72
+ security: [{
73
+ key: 'oauth2',
74
+ scheme: 'bearer',
75
+ type: 'http'
76
+ }],
61
77
  url: '/customers/by-external-id/{externalId}',
62
78
  ...options,
63
79
  headers: {
@@ -68,7 +84,11 @@ export class PuntjesApi extends HeyApiClient {
68
84
  }
69
85
  linkCustomerExternalId(options) {
70
86
  return (options.client ?? this.client).post({
71
- security: [{ scheme: 'bearer', type: 'http' }],
87
+ security: [{
88
+ key: 'oauth2',
89
+ scheme: 'bearer',
90
+ type: 'http'
91
+ }],
72
92
  url: '/customers/link-external-id',
73
93
  ...options,
74
94
  headers: {
@@ -77,9 +97,28 @@ export class PuntjesApi extends HeyApiClient {
77
97
  }
78
98
  });
79
99
  }
100
+ changeCustomerExternalId(options) {
101
+ return (options.client ?? this.client).put({
102
+ security: [{
103
+ key: 'oauth2',
104
+ scheme: 'bearer',
105
+ type: 'http'
106
+ }],
107
+ url: '/customers/{customer}/external-id',
108
+ ...options,
109
+ headers: {
110
+ 'Content-Type': 'application/json',
111
+ ...options.headers
112
+ }
113
+ });
114
+ }
80
115
  sendLoyaltyCardByExternalId(options) {
81
116
  return (options.client ?? this.client).post({
82
- security: [{ scheme: 'bearer', type: 'http' }],
117
+ security: [{
118
+ key: 'oauth2',
119
+ scheme: 'bearer',
120
+ type: 'http'
121
+ }],
83
122
  url: '/customers/by-external-id/{externalId}/send-card',
84
123
  ...options,
85
124
  headers: {
@@ -90,7 +129,11 @@ export class PuntjesApi extends HeyApiClient {
90
129
  }
91
130
  sendLoyaltyCard(options) {
92
131
  return (options.client ?? this.client).post({
93
- security: [{ scheme: 'bearer', type: 'http' }],
132
+ security: [{
133
+ key: 'oauth2',
134
+ scheme: 'bearer',
135
+ type: 'http'
136
+ }],
94
137
  url: '/customers/{customer}/send-card',
95
138
  ...options,
96
139
  headers: {
@@ -101,14 +144,37 @@ export class PuntjesApi extends HeyApiClient {
101
144
  }
102
145
  showCustomer(options) {
103
146
  return (options.client ?? this.client).get({
104
- security: [{ scheme: 'bearer', type: 'http' }],
147
+ security: [{
148
+ key: 'oauth2',
149
+ scheme: 'bearer',
150
+ type: 'http'
151
+ }],
105
152
  url: '/customers/{customer}',
106
153
  ...options
107
154
  });
108
155
  }
156
+ mergeCustomers(options) {
157
+ return (options.client ?? this.client).post({
158
+ security: [{
159
+ key: 'oauth2',
160
+ scheme: 'bearer',
161
+ type: 'http'
162
+ }],
163
+ url: '/customers/{customer}/merge',
164
+ ...options,
165
+ headers: {
166
+ 'Content-Type': 'application/json',
167
+ ...options.headers
168
+ }
169
+ });
170
+ }
109
171
  submitTransaction(options) {
110
172
  return (options.client ?? this.client).post({
111
- security: [{ scheme: 'bearer', type: 'http' }],
173
+ security: [{
174
+ key: 'oauth2',
175
+ scheme: 'bearer',
176
+ type: 'http'
177
+ }],
112
178
  url: '/transactions',
113
179
  ...options,
114
180
  headers: {
@@ -119,35 +185,55 @@ export class PuntjesApi extends HeyApiClient {
119
185
  }
120
186
  listCustomerTransactions(options) {
121
187
  return (options.client ?? this.client).get({
122
- security: [{ scheme: 'bearer', type: 'http' }],
188
+ security: [{
189
+ key: 'oauth2',
190
+ scheme: 'bearer',
191
+ type: 'http'
192
+ }],
123
193
  url: '/customers/{customer}/transactions',
124
194
  ...options
125
195
  });
126
196
  }
127
197
  showWallet(options) {
128
198
  return (options.client ?? this.client).get({
129
- security: [{ scheme: 'bearer', type: 'http' }],
199
+ security: [{
200
+ key: 'oauth2',
201
+ scheme: 'bearer',
202
+ type: 'http'
203
+ }],
130
204
  url: '/customers/{customer}/wallet',
131
205
  ...options
132
206
  });
133
207
  }
134
208
  listLedgerEntries(options) {
135
209
  return (options.client ?? this.client).get({
136
- security: [{ scheme: 'bearer', type: 'http' }],
210
+ security: [{
211
+ key: 'oauth2',
212
+ scheme: 'bearer',
213
+ type: 'http'
214
+ }],
137
215
  url: '/customers/{customer}/ledger',
138
216
  ...options
139
217
  });
140
218
  }
141
219
  downloadWalletPass(options) {
142
220
  return (options.client ?? this.client).get({
143
- security: [{ scheme: 'bearer', type: 'http' }],
221
+ security: [{
222
+ key: 'oauth2',
223
+ scheme: 'bearer',
224
+ type: 'http'
225
+ }],
144
226
  url: '/customers/{customer}/wallet-pass',
145
227
  ...options
146
228
  });
147
229
  }
148
230
  adjustWallet(options) {
149
231
  return (options.client ?? this.client).post({
150
- security: [{ scheme: 'bearer', type: 'http' }],
232
+ security: [{
233
+ key: 'oauth2',
234
+ scheme: 'bearer',
235
+ type: 'http'
236
+ }],
151
237
  url: '/customers/{customer}/wallet/adjust',
152
238
  ...options,
153
239
  headers: {
@@ -158,21 +244,33 @@ export class PuntjesApi extends HeyApiClient {
158
244
  }
159
245
  listRewards(options) {
160
246
  return (options?.client ?? this.client).get({
161
- security: [{ scheme: 'bearer', type: 'http' }],
247
+ security: [{
248
+ key: 'oauth2',
249
+ scheme: 'bearer',
250
+ type: 'http'
251
+ }],
162
252
  url: '/rewards',
163
253
  ...options
164
254
  });
165
255
  }
166
256
  listCustomerRedemptions(options) {
167
257
  return (options.client ?? this.client).get({
168
- security: [{ scheme: 'bearer', type: 'http' }],
258
+ security: [{
259
+ key: 'oauth2',
260
+ scheme: 'bearer',
261
+ type: 'http'
262
+ }],
169
263
  url: '/customers/{customer}/redemptions',
170
264
  ...options
171
265
  });
172
266
  }
173
267
  redeemReward(options) {
174
268
  return (options.client ?? this.client).post({
175
- security: [{ scheme: 'bearer', type: 'http' }],
269
+ security: [{
270
+ key: 'oauth2',
271
+ scheme: 'bearer',
272
+ type: 'http'
273
+ }],
176
274
  url: '/redemptions',
177
275
  ...options,
178
276
  headers: {
@@ -183,14 +281,22 @@ export class PuntjesApi extends HeyApiClient {
183
281
  }
184
282
  lookupRedemption(options) {
185
283
  return (options.client ?? this.client).get({
186
- security: [{ scheme: 'bearer', type: 'http' }],
284
+ security: [{
285
+ key: 'oauth2',
286
+ scheme: 'bearer',
287
+ type: 'http'
288
+ }],
187
289
  url: '/redemptions/{code}',
188
290
  ...options
189
291
  });
190
292
  }
191
293
  verifyRedemption(options) {
192
294
  return (options.client ?? this.client).post({
193
- security: [{ scheme: 'bearer', type: 'http' }],
295
+ security: [{
296
+ key: 'oauth2',
297
+ scheme: 'bearer',
298
+ type: 'http'
299
+ }],
194
300
  url: '/redemptions/{code}/verify',
195
301
  ...options,
196
302
  headers: {
@@ -201,14 +307,22 @@ export class PuntjesApi extends HeyApiClient {
201
307
  }
202
308
  listProducts(options) {
203
309
  return (options?.client ?? this.client).get({
204
- security: [{ scheme: 'bearer', type: 'http' }],
310
+ security: [{
311
+ key: 'oauth2',
312
+ scheme: 'bearer',
313
+ type: 'http'
314
+ }],
205
315
  url: '/products',
206
316
  ...options
207
317
  });
208
318
  }
209
319
  createProduct(options) {
210
320
  return (options.client ?? this.client).post({
211
- security: [{ scheme: 'bearer', type: 'http' }],
321
+ security: [{
322
+ key: 'oauth2',
323
+ scheme: 'bearer',
324
+ type: 'http'
325
+ }],
212
326
  url: '/products',
213
327
  ...options,
214
328
  headers: {
@@ -219,7 +333,11 @@ export class PuntjesApi extends HeyApiClient {
219
333
  }
220
334
  bulkUpsertProducts(options) {
221
335
  return (options.client ?? this.client).post({
222
- security: [{ scheme: 'bearer', type: 'http' }],
336
+ security: [{
337
+ key: 'oauth2',
338
+ scheme: 'bearer',
339
+ type: 'http'
340
+ }],
223
341
  url: '/products/batch',
224
342
  ...options,
225
343
  headers: {
@@ -230,7 +348,11 @@ export class PuntjesApi extends HeyApiClient {
230
348
  }
231
349
  createRewardFromProduct(options) {
232
350
  return (options.client ?? this.client).post({
233
- security: [{ scheme: 'bearer', type: 'http' }],
351
+ security: [{
352
+ key: 'oauth2',
353
+ scheme: 'bearer',
354
+ type: 'http'
355
+ }],
234
356
  url: '/products/{externalId}/reward',
235
357
  ...options,
236
358
  headers: {
@@ -241,21 +363,33 @@ export class PuntjesApi extends HeyApiClient {
241
363
  }
242
364
  deleteProduct(options) {
243
365
  return (options.client ?? this.client).delete({
244
- security: [{ scheme: 'bearer', type: 'http' }],
366
+ security: [{
367
+ key: 'oauth2',
368
+ scheme: 'bearer',
369
+ type: 'http'
370
+ }],
245
371
  url: '/products/{externalId}',
246
372
  ...options
247
373
  });
248
374
  }
249
375
  showProduct(options) {
250
376
  return (options.client ?? this.client).get({
251
- security: [{ scheme: 'bearer', type: 'http' }],
377
+ security: [{
378
+ key: 'oauth2',
379
+ scheme: 'bearer',
380
+ type: 'http'
381
+ }],
252
382
  url: '/products/{externalId}',
253
383
  ...options
254
384
  });
255
385
  }
256
386
  updateProduct(options) {
257
387
  return (options.client ?? this.client).patch({
258
- security: [{ scheme: 'bearer', type: 'http' }],
388
+ security: [{
389
+ key: 'oauth2',
390
+ scheme: 'bearer',
391
+ type: 'http'
392
+ }],
259
393
  url: '/products/{externalId}',
260
394
  ...options,
261
395
  headers: {
@@ -266,7 +400,11 @@ export class PuntjesApi extends HeyApiClient {
266
400
  }
267
401
  upsertProduct(options) {
268
402
  return (options.client ?? this.client).put({
269
- security: [{ scheme: 'bearer', type: 'http' }],
403
+ security: [{
404
+ key: 'oauth2',
405
+ scheme: 'bearer',
406
+ type: 'http'
407
+ }],
270
408
  url: '/products/{externalId}',
271
409
  ...options,
272
410
  headers: {
@@ -277,28 +415,44 @@ export class PuntjesApi extends HeyApiClient {
277
415
  }
278
416
  listCampaigns(options) {
279
417
  return (options?.client ?? this.client).get({
280
- security: [{ scheme: 'bearer', type: 'http' }],
418
+ security: [{
419
+ key: 'oauth2',
420
+ scheme: 'bearer',
421
+ type: 'http'
422
+ }],
281
423
  url: '/campaigns',
282
424
  ...options
283
425
  });
284
426
  }
285
427
  listCustomerVouchers(options) {
286
428
  return (options.client ?? this.client).get({
287
- security: [{ scheme: 'bearer', type: 'http' }],
429
+ security: [{
430
+ key: 'oauth2',
431
+ scheme: 'bearer',
432
+ type: 'http'
433
+ }],
288
434
  url: '/customers/{customer}/vouchers',
289
435
  ...options
290
436
  });
291
437
  }
292
438
  lookupVoucher(options) {
293
439
  return (options.client ?? this.client).get({
294
- security: [{ scheme: 'bearer', type: 'http' }],
440
+ security: [{
441
+ key: 'oauth2',
442
+ scheme: 'bearer',
443
+ type: 'http'
444
+ }],
295
445
  url: '/vouchers/{code}',
296
446
  ...options
297
447
  });
298
448
  }
299
449
  verifyVoucher(options) {
300
450
  return (options.client ?? this.client).post({
301
- security: [{ scheme: 'bearer', type: 'http' }],
451
+ security: [{
452
+ key: 'oauth2',
453
+ scheme: 'bearer',
454
+ type: 'http'
455
+ }],
302
456
  url: '/vouchers/{code}/verify',
303
457
  ...options,
304
458
  headers: {
@@ -309,25 +463,82 @@ export class PuntjesApi extends HeyApiClient {
309
463
  }
310
464
  showStatistics(options) {
311
465
  return (options?.client ?? this.client).get({
312
- security: [{ scheme: 'bearer', type: 'http' }],
466
+ security: [{
467
+ key: 'oauth2',
468
+ scheme: 'bearer',
469
+ type: 'http'
470
+ }],
313
471
  url: '/statistics',
314
472
  ...options
315
473
  });
316
474
  }
317
475
  showMe(options) {
318
476
  return (options?.client ?? this.client).get({
319
- security: [{ scheme: 'bearer', type: 'http' }],
477
+ security: [{
478
+ key: 'oauth2',
479
+ scheme: 'bearer',
480
+ type: 'http'
481
+ }],
320
482
  url: '/me',
321
483
  ...options
322
484
  });
323
485
  }
324
486
  listBranches(options) {
325
487
  return (options?.client ?? this.client).get({
326
- security: [{ scheme: 'bearer', type: 'http' }],
488
+ security: [{
489
+ key: 'oauth2',
490
+ scheme: 'bearer',
491
+ type: 'http'
492
+ }],
327
493
  url: '/branches',
328
494
  ...options
329
495
  });
330
496
  }
497
+ createPartnerApiClient(options) {
498
+ return (options.client ?? this.client).post({
499
+ security: [{
500
+ key: 'partnerAuthorizationCode',
501
+ scheme: 'bearer',
502
+ type: 'http'
503
+ }],
504
+ url: '/partner/clients',
505
+ ...options,
506
+ headers: {
507
+ 'Content-Type': 'application/json',
508
+ ...options.headers
509
+ }
510
+ });
511
+ }
512
+ rotateClientSecret(options) {
513
+ return (options.client ?? this.client).post({
514
+ security: [{
515
+ key: 'oauth2',
516
+ scheme: 'bearer',
517
+ type: 'http'
518
+ }],
519
+ url: '/client/secret',
520
+ ...options,
521
+ headers: {
522
+ 'Content-Type': 'application/json',
523
+ ...options.headers
524
+ }
525
+ });
526
+ }
527
+ deleteClient(options) {
528
+ return (options.client ?? this.client).delete({
529
+ security: [{
530
+ key: 'oauth2',
531
+ scheme: 'bearer',
532
+ type: 'http'
533
+ }],
534
+ url: '/client',
535
+ ...options,
536
+ headers: {
537
+ 'Content-Type': 'application/json',
538
+ ...options.headers
539
+ }
540
+ });
541
+ }
331
542
  checkHealth(options) {
332
543
  return (options?.client ?? this.client).get({ url: '/health', ...options });
333
544
  }
@@ -35,6 +35,10 @@ export type AnniversaryCampaignConfigData = {
35
35
  * The branches this campaign runs in. Absent or empty means all of them.
36
36
  */
37
37
  branch_ids?: Array<number>;
38
+ /**
39
+ * The groups this campaign is for. Absent or empty means everyone.
40
+ */
41
+ customer_group_ids?: Array<number>;
38
42
  /**
39
43
  * Which shape this is.
40
44
  */
@@ -125,6 +129,10 @@ export type CampaignListData = {
125
129
  branches: Array<BranchReferenceData> | null;
126
130
  created_at: string | null;
127
131
  updated_at: string | null;
132
+ /**
133
+ * Who the campaign is for. Empty means every customer.
134
+ */
135
+ customer_groups: Array<CustomerGroupReferenceData>;
128
136
  };
129
137
  /**
130
138
  * CampaignProductRuleData
@@ -152,7 +160,7 @@ export type CampaignStatusData = {
152
160
  export type CampaignVoucherLookupData = {
153
161
  voucher_code: string;
154
162
  /**
155
- * How much comes off, for a discount bon. Its `type` says which shape this is.
163
+ * How much comes off, for a discount voucher. Its `type` says which shape this is.
156
164
  */
157
165
  discount: ({
158
166
  type: 'percentage';
@@ -161,19 +169,27 @@ export type CampaignVoucherLookupData = {
161
169
  } & VoucherFixedDiscountData);
162
170
  valid_until: string | null;
163
171
  /**
164
- * When the bon was spent, or null while it is not.
172
+ * When the voucher was spent, or null while it is not.
165
173
  */
166
174
  consumed_at: string | null;
167
175
  campaign_id: number;
168
176
  kind: string;
169
177
  /**
170
- * What to hand over, for a free-product bon.
178
+ * What to hand over, for a free-product voucher.
171
179
  */
172
180
  products: Array<VoucherGiftProductData> | null;
173
181
  /**
174
182
  * `valid`, `used` or `expired`.
175
183
  */
176
184
  status: string;
185
+ /**
186
+ * Groups that may spend it; empty means every customer.
187
+ */
188
+ customer_groups: Array<CustomerGroupReferenceData>;
189
+ /**
190
+ * Only true when `status` is `valid` and the customer is a member of none of its customer groups.
191
+ */
192
+ blocked_by_group: boolean;
177
193
  };
178
194
  /**
179
195
  * CampaignVoucherVerificationData
@@ -181,7 +197,7 @@ export type CampaignVoucherLookupData = {
181
197
  export type CampaignVoucherVerificationData = {
182
198
  voucher_code: string;
183
199
  /**
184
- * How much comes off, for a discount bon. Its `type` says which shape this is.
200
+ * How much comes off, for a discount voucher. Its `type` says which shape this is.
185
201
  */
186
202
  discount: ({
187
203
  type: 'percentage';
@@ -193,7 +209,7 @@ export type CampaignVoucherVerificationData = {
193
209
  campaign_id: number;
194
210
  kind: string;
195
211
  /**
196
- * What to hand over, for a free-product bon.
212
+ * What to hand over, for a free-product voucher.
197
213
  */
198
214
  products: Array<VoucherGiftProductData> | null;
199
215
  };
@@ -206,6 +222,21 @@ export type CategoryRevenueData = {
206
222
  revenue?: number;
207
223
  isOther?: boolean;
208
224
  };
225
+ /**
226
+ * ChangeExternalIdData
227
+ */
228
+ export type ChangeExternalIdData = {
229
+ external_id: string;
230
+ };
231
+ /**
232
+ * ClientSecretData
233
+ */
234
+ export type ClientSecretData = {
235
+ /**
236
+ * The current `client_secret` of this client, or the old one in its 60 minutes.
237
+ */
238
+ client_secret: string;
239
+ };
209
240
  /**
210
241
  * CommerceStatisticsData
211
242
  */
@@ -231,6 +262,7 @@ export type CreateCustomerData = {
231
262
  marketing_consent?: boolean | null;
232
263
  marketing_consent_statement_version?: string | null;
233
264
  identifiers?: Array<CreateIdentifierData>;
265
+ groups?: Array<CustomerGroupReferenceData>;
234
266
  };
235
267
  /**
236
268
  * CreateIdentifierData
@@ -240,6 +272,19 @@ export type CreateIdentifierData = {
240
272
  value: string;
241
273
  is_primary?: boolean;
242
274
  };
275
+ /**
276
+ * CreatePartnerApiClientData
277
+ */
278
+ export type CreatePartnerApiClientData = {
279
+ /**
280
+ * The `connection` handle the partner got on its redirect URI after the admin allowed.
281
+ */
282
+ connection: string;
283
+ /**
284
+ * The name of the new client, as the vendor sees it under API clients.
285
+ */
286
+ label: string;
287
+ };
243
288
  /**
244
289
  * CreateProductData
245
290
  */
@@ -334,6 +379,10 @@ export type CustomerData = {
334
379
  anonymized_at: string | null;
335
380
  created_at: string | null;
336
381
  updated_at: string | null;
382
+ /**
383
+ * The customer's groups, sorted by name, then by external_id.
384
+ */
385
+ groups: Array<CustomerGroupReferenceData>;
337
386
  };
338
387
  /**
339
388
  * CustomerDetailData
@@ -367,6 +416,21 @@ export type CustomerDetailData = {
367
416
  * `true` for a deactivated customer; the key is absent for any other customer.
368
417
  */
369
418
  is_deactivated?: boolean;
419
+ /**
420
+ * The account a merge moved this closed account into, else `null`.
421
+ */
422
+ merged_into_customer_id: number | null;
423
+ /**
424
+ * The customer's groups, sorted by name, then by external_id.
425
+ */
426
+ groups: Array<CustomerGroupReferenceData>;
427
+ };
428
+ /**
429
+ * CustomerGroupReferenceData
430
+ */
431
+ export type CustomerGroupReferenceData = {
432
+ external_id: string;
433
+ name: string;
370
434
  };
371
435
  /**
372
436
  * CustomerIdentifierData
@@ -415,6 +479,14 @@ export type CustomerLookupData = {
415
479
  * `true` for a deactivated customer; the key is absent for any other customer.
416
480
  */
417
481
  is_deactivated?: boolean;
482
+ /**
483
+ * The account a merge moved this closed account into, else `null`.
484
+ */
485
+ merged_into_customer_id: number | null;
486
+ /**
487
+ * The customer's groups, sorted by name, then by external_id.
488
+ */
489
+ groups: Array<CustomerGroupReferenceData>;
418
490
  };
419
491
  /**
420
492
  * CustomerStatusData
@@ -431,7 +503,7 @@ export type CustomerVoucherData = {
431
503
  campaign_id: number;
432
504
  kind: string;
433
505
  /**
434
- * How much comes off, for a discount bon. Its `type` says which shape this is.
506
+ * How much comes off, for a discount voucher. Its `type` says which shape this is.
435
507
  */
436
508
  discount: ({
437
509
  type: 'percentage';
@@ -439,15 +511,15 @@ export type CustomerVoucherData = {
439
511
  type: 'fixed';
440
512
  } & VoucherFixedDiscountData);
441
513
  /**
442
- * What to hand over, for a free-product bon.
514
+ * What to hand over, for a free-product voucher.
443
515
  */
444
516
  products: Array<VoucherGiftProductData> | null;
445
517
  /**
446
- * The last day the bon can be spent, or null when it does not run out.
518
+ * The last day the voucher can be spent, or null when it does not run out.
447
519
  */
448
520
  valid_until: string | null;
449
521
  /**
450
- * The branches that take the bon; null means every branch.
522
+ * The branches that take the voucher; null means every branch.
451
523
  */
452
524
  branches: Array<BranchReferenceData> | null;
453
525
  };
@@ -726,6 +798,23 @@ export type LoyaltyStatisticsData = {
726
798
  */
727
799
  breakage_rate_excluding_import?: number | null;
728
800
  };
801
+ /**
802
+ * MergeCustomersApiData
803
+ */
804
+ export type MergeCustomersApiData = {
805
+ /**
806
+ * Id of the closed account; its rows go to the kept account, its points too if `add_points`.
807
+ */
808
+ source: number;
809
+ /**
810
+ * `true` adds the points of the closed account to the kept account; `false` drops them.
811
+ */
812
+ add_points: boolean;
813
+ /**
814
+ * Max 255 characters; the same request again answers 200, another is refused.
815
+ */
816
+ idempotency_key: string;
817
+ };
729
818
  /**
730
819
  * MomentCampaignConfigData
731
820
  */
@@ -744,11 +833,28 @@ export type MomentCampaignConfigData = {
744
833
  * The branches this campaign runs in. Absent or empty means all of them.
745
834
  */
746
835
  branch_ids?: Array<number>;
836
+ /**
837
+ * The groups this campaign is for. Absent or empty means everyone.
838
+ */
839
+ customer_group_ids?: Array<number>;
747
840
  /**
748
841
  * Which shape this is.
749
842
  */
750
843
  type: 'moment';
751
844
  };
845
+ /**
846
+ * NewClientSecretData
847
+ */
848
+ export type NewClientSecretData = {
849
+ /**
850
+ * The `client_id` for `POST /oauth/token`. It does not change.
851
+ */
852
+ client_id: string;
853
+ /**
854
+ * The new `client_secret` for `POST /oauth/token`.
855
+ */
856
+ client_secret: string;
857
+ };
752
858
  /**
753
859
  * NthPurchaseCampaignConfigData
754
860
  */
@@ -775,6 +881,10 @@ export type NthPurchaseCampaignConfigData = {
775
881
  * The branches this campaign runs in. Absent or empty means all of them.
776
882
  */
777
883
  branch_ids?: Array<number>;
884
+ /**
885
+ * The groups this campaign is for. Absent or empty means everyone.
886
+ */
887
+ customer_group_ids?: Array<number>;
778
888
  /**
779
889
  * Which shape this is.
780
890
  */
@@ -798,6 +908,27 @@ export type PaginationMeta = {
798
908
  per_page: number;
799
909
  total: number;
800
910
  };
911
+ /**
912
+ * PartnerApiClientData
913
+ */
914
+ export type PartnerApiClientData = {
915
+ /**
916
+ * The `client_id` for `POST /oauth/token`.
917
+ */
918
+ client_id: string;
919
+ /**
920
+ * The `client_secret` for `POST /oauth/token`.
921
+ */
922
+ client_secret: string;
923
+ /**
924
+ * The vendor that allowed the connection.
925
+ */
926
+ vendor: {
927
+ id: number;
928
+ name: string;
929
+ };
930
+ branch: BranchReferenceData | null;
931
+ };
801
932
  /**
802
933
  * PercentageDiscountData
803
934
  */
@@ -1112,6 +1243,10 @@ export type TransactionCampaignConfigData = {
1112
1243
  * The branches this campaign runs in. Absent or empty means all of them.
1113
1244
  */
1114
1245
  branch_ids?: Array<number>;
1246
+ /**
1247
+ * The groups this campaign is for. Absent or empty means everyone.
1248
+ */
1249
+ customer_group_ids?: Array<number>;
1115
1250
  /**
1116
1251
  * Which shape this is.
1117
1252
  */
@@ -1158,6 +1293,7 @@ export type UpdateCustomerData = {
1158
1293
  locale?: 'nl' | 'en' | null;
1159
1294
  marketing_consent?: boolean | null;
1160
1295
  marketing_consent_statement_version?: string | null;
1296
+ groups?: Array<CustomerGroupReferenceData>;
1161
1297
  };
1162
1298
  /**
1163
1299
  * UpdateProductData
@@ -1253,7 +1389,7 @@ export type VoucherGiftProductData = {
1253
1389
  */
1254
1390
  id: number | null;
1255
1391
  /**
1256
- * The product name as it was when the bon was issued.
1392
+ * The product name as it was when the voucher was issued.
1257
1393
  */
1258
1394
  name: string;
1259
1395
  /**
@@ -1261,7 +1397,7 @@ export type VoucherGiftProductData = {
1261
1397
  */
1262
1398
  quantity: number;
1263
1399
  /**
1264
- * The item number when the bon was issued, or null when it had none.
1400
+ * The item number when the voucher was issued, or null when it had none.
1265
1401
  */
1266
1402
  product_reference: string | null;
1267
1403
  };
@@ -1321,6 +1457,10 @@ export type WinBackCampaignConfigData = {
1321
1457
  * The branches this campaign runs in. Absent or empty means all of them.
1322
1458
  */
1323
1459
  branch_ids?: Array<number>;
1460
+ /**
1461
+ * The groups this campaign is for. Absent or empty means everyone.
1462
+ */
1463
+ customer_group_ids?: Array<number>;
1324
1464
  /**
1325
1465
  * Which shape this is.
1326
1466
  */
@@ -1572,6 +1712,59 @@ export type LinkCustomerExternalIdResponses = {
1572
1712
  };
1573
1713
  };
1574
1714
  export type LinkCustomerExternalIdResponse = LinkCustomerExternalIdResponses[keyof LinkCustomerExternalIdResponses];
1715
+ export type ChangeCustomerExternalIdData = {
1716
+ body: ChangeExternalIdData;
1717
+ path: {
1718
+ customer: string | null;
1719
+ };
1720
+ query?: never;
1721
+ url: '/customers/{customer}/external-id';
1722
+ };
1723
+ export type ChangeCustomerExternalIdErrors = {
1724
+ /**
1725
+ * The request is missing something the API needs before it can act.
1726
+ */
1727
+ 400: ErrorResponse;
1728
+ /**
1729
+ * The credential is missing, malformed, or not accepted.
1730
+ */
1731
+ 401: ErrorResponse;
1732
+ /**
1733
+ * The credential is valid, but this vendor may not do this right now.
1734
+ */
1735
+ 403: ErrorResponse;
1736
+ /**
1737
+ * The route, or the record it names, does not exist.
1738
+ */
1739
+ 404: ErrorResponse;
1740
+ /**
1741
+ * The request conflicts with something that already exists.
1742
+ */
1743
+ 409: ErrorResponse;
1744
+ /**
1745
+ * The body is in a format the API cannot read. Send it as JSON, or as a form.
1746
+ */
1747
+ 415: ErrorResponse;
1748
+ /**
1749
+ * The request was understood, and the API refuses to act on it.
1750
+ */
1751
+ 422: ErrorResponse;
1752
+ /**
1753
+ * Too many requests. `x-error-codes` names the limit; not every one of them clears by waiting.
1754
+ */
1755
+ 429: ErrorResponse;
1756
+ /**
1757
+ * Something went wrong on our side. Quote the request_id when you report it.
1758
+ */
1759
+ 500: ErrorResponse;
1760
+ };
1761
+ export type ChangeCustomerExternalIdError = ChangeCustomerExternalIdErrors[keyof ChangeCustomerExternalIdErrors];
1762
+ export type ChangeCustomerExternalIdResponses = {
1763
+ 200: {
1764
+ data: CustomerDetailData;
1765
+ };
1766
+ };
1767
+ export type ChangeCustomerExternalIdResponse = ChangeCustomerExternalIdResponses[keyof ChangeCustomerExternalIdResponses];
1575
1768
  export type SendLoyaltyCardByExternalIdData = {
1576
1769
  body?: SendLoyaltyCardRequestData;
1577
1770
  path: {
@@ -1707,6 +1900,55 @@ export type ShowCustomerResponses = {
1707
1900
  };
1708
1901
  };
1709
1902
  export type ShowCustomerResponse = ShowCustomerResponses[keyof ShowCustomerResponses];
1903
+ export type MergeCustomersData = {
1904
+ body: MergeCustomersApiData;
1905
+ path: {
1906
+ customer: string | null;
1907
+ };
1908
+ query?: never;
1909
+ url: '/customers/{customer}/merge';
1910
+ };
1911
+ export type MergeCustomersErrors = {
1912
+ /**
1913
+ * The request is missing something the API needs before it can act.
1914
+ */
1915
+ 400: ErrorResponse;
1916
+ /**
1917
+ * The credential is missing, malformed, or not accepted.
1918
+ */
1919
+ 401: ErrorResponse;
1920
+ /**
1921
+ * The credential is valid, but this vendor may not do this right now.
1922
+ */
1923
+ 403: ErrorResponse;
1924
+ /**
1925
+ * The route, or the record it names, does not exist.
1926
+ */
1927
+ 404: ErrorResponse;
1928
+ /**
1929
+ * The body is in a format the API cannot read. Send it as JSON, or as a form.
1930
+ */
1931
+ 415: ErrorResponse;
1932
+ /**
1933
+ * The request was understood, and the API refuses to act on it.
1934
+ */
1935
+ 422: ErrorResponse;
1936
+ /**
1937
+ * Too many requests. `x-error-codes` names the limit; not every one of them clears by waiting.
1938
+ */
1939
+ 429: ErrorResponse;
1940
+ /**
1941
+ * Something went wrong on our side. Quote the request_id when you report it.
1942
+ */
1943
+ 500: ErrorResponse;
1944
+ };
1945
+ export type MergeCustomersError = MergeCustomersErrors[keyof MergeCustomersErrors];
1946
+ export type MergeCustomersResponses = {
1947
+ 200: {
1948
+ data: CustomerDetailData;
1949
+ };
1950
+ };
1951
+ export type MergeCustomersResponse = MergeCustomersResponses[keyof MergeCustomersResponses];
1710
1952
  export type SubmitTransactionData = {
1711
1953
  body: CreateTransactionData;
1712
1954
  path?: never;
@@ -2834,6 +3076,137 @@ export type ListBranchesResponses = {
2834
3076
  };
2835
3077
  };
2836
3078
  export type ListBranchesResponse = ListBranchesResponses[keyof ListBranchesResponses];
3079
+ export type CreatePartnerApiClientData2 = {
3080
+ body: CreatePartnerApiClientData;
3081
+ path?: never;
3082
+ query?: never;
3083
+ url: '/partner/clients';
3084
+ };
3085
+ export type CreatePartnerApiClientErrors = {
3086
+ /**
3087
+ * The request is missing something the API needs before it can act.
3088
+ */
3089
+ 400: ErrorResponse;
3090
+ /**
3091
+ * The credential is missing, malformed, or not accepted.
3092
+ */
3093
+ 401: ErrorResponse;
3094
+ /**
3095
+ * The credential is valid, but this vendor may not do this right now.
3096
+ */
3097
+ 403: ErrorResponse;
3098
+ /**
3099
+ * The route, or the record it names, does not exist.
3100
+ */
3101
+ 404: ErrorResponse;
3102
+ /**
3103
+ * The body is in a format the API cannot read. Send it as JSON, or as a form.
3104
+ */
3105
+ 415: ErrorResponse;
3106
+ /**
3107
+ * The request was understood, and the API refuses to act on it.
3108
+ */
3109
+ 422: ErrorResponse;
3110
+ /**
3111
+ * Too many requests. `x-error-codes` names the limit; not every one of them clears by waiting.
3112
+ */
3113
+ 429: ErrorResponse;
3114
+ /**
3115
+ * Something went wrong on our side. Quote the request_id when you report it.
3116
+ */
3117
+ 500: ErrorResponse;
3118
+ };
3119
+ export type CreatePartnerApiClientError = CreatePartnerApiClientErrors[keyof CreatePartnerApiClientErrors];
3120
+ export type CreatePartnerApiClientResponses = {
3121
+ 201: {
3122
+ data: PartnerApiClientData;
3123
+ };
3124
+ };
3125
+ export type CreatePartnerApiClientResponse = CreatePartnerApiClientResponses[keyof CreatePartnerApiClientResponses];
3126
+ export type RotateClientSecretData = {
3127
+ body: ClientSecretData;
3128
+ path?: never;
3129
+ query?: never;
3130
+ url: '/client/secret';
3131
+ };
3132
+ export type RotateClientSecretErrors = {
3133
+ /**
3134
+ * The request is missing something the API needs before it can act.
3135
+ */
3136
+ 400: ErrorResponse;
3137
+ /**
3138
+ * The credential is missing, malformed, or not accepted.
3139
+ */
3140
+ 401: ErrorResponse;
3141
+ /**
3142
+ * The credential is valid, but this vendor may not do this right now.
3143
+ */
3144
+ 403: ErrorResponse;
3145
+ /**
3146
+ * The body is in a format the API cannot read. Send it as JSON, or as a form.
3147
+ */
3148
+ 415: ErrorResponse;
3149
+ /**
3150
+ * The request was understood, and the API refuses to act on it.
3151
+ */
3152
+ 422: ErrorResponse;
3153
+ /**
3154
+ * Too many requests. `x-error-codes` names the limit; not every one of them clears by waiting.
3155
+ */
3156
+ 429: ErrorResponse;
3157
+ /**
3158
+ * Something went wrong on our side. Quote the request_id when you report it.
3159
+ */
3160
+ 500: ErrorResponse;
3161
+ };
3162
+ export type RotateClientSecretError = RotateClientSecretErrors[keyof RotateClientSecretErrors];
3163
+ export type RotateClientSecretResponses = {
3164
+ 200: {
3165
+ data: NewClientSecretData;
3166
+ };
3167
+ };
3168
+ export type RotateClientSecretResponse = RotateClientSecretResponses[keyof RotateClientSecretResponses];
3169
+ export type DeleteClientData = {
3170
+ body: ClientSecretData;
3171
+ path?: never;
3172
+ query?: never;
3173
+ url: '/client';
3174
+ };
3175
+ export type DeleteClientErrors = {
3176
+ /**
3177
+ * The request is missing something the API needs before it can act.
3178
+ */
3179
+ 400: ErrorResponse;
3180
+ /**
3181
+ * The credential is missing, malformed, or not accepted.
3182
+ */
3183
+ 401: ErrorResponse;
3184
+ /**
3185
+ * The credential is valid, but this vendor may not do this right now.
3186
+ */
3187
+ 403: ErrorResponse;
3188
+ /**
3189
+ * The body is in a format the API cannot read. Send it as JSON, or as a form.
3190
+ */
3191
+ 415: ErrorResponse;
3192
+ /**
3193
+ * The request was understood, and the API refuses to act on it.
3194
+ */
3195
+ 422: ErrorResponse;
3196
+ /**
3197
+ * Too many requests. `x-error-codes` names the limit; not every one of them clears by waiting.
3198
+ */
3199
+ 429: ErrorResponse;
3200
+ /**
3201
+ * Something went wrong on our side. Quote the request_id when you report it.
3202
+ */
3203
+ 500: ErrorResponse;
3204
+ };
3205
+ export type DeleteClientError = DeleteClientErrors[keyof DeleteClientErrors];
3206
+ export type DeleteClientResponses = {
3207
+ 204: void;
3208
+ };
3209
+ export type DeleteClientResponse = DeleteClientResponses[keyof DeleteClientResponses];
2837
3210
  export type CheckHealthData = {
2838
3211
  body?: never;
2839
3212
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puntjes/sdk",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
4
  "description": "The official TypeScript client for the Puntjes loyalty API.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -39,9 +39,10 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@hey-api/openapi-ts": "0.99.0",
42
+ "@microsoft/api-extractor": "7.59.4",
42
43
  "@types/node": "22.20.5",
43
- "oxlint": "1.87.0",
44
+ "oxlint": "1.88.0",
44
45
  "typescript": "5.9.3",
45
- "vitest": "5.0.3"
46
+ "vitest": "5.0.5"
46
47
  }
47
48
  }