@munchi_oy/core 2.15.0 → 2.15.1
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/dist/generated/api.d.ts +215 -8
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +354 -8
- package/package.json +13 -15
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -4757,6 +4757,18 @@ export interface CreateMunchiGiftCardDto {
|
|
|
4757
4757
|
* @memberof CreateMunchiGiftCardDto
|
|
4758
4758
|
*/
|
|
4759
4759
|
'purchaserEmail'?: string;
|
|
4760
|
+
/**
|
|
4761
|
+
* Whether the card is emailed to purchaserEmail once it is ACTIVE: at once for a card sold ACTIVE, when its order is paid for one sold PENDING. Absent: true. Without purchaserEmail nothing is sent.
|
|
4762
|
+
* @type {boolean}
|
|
4763
|
+
* @memberof CreateMunchiGiftCardDto
|
|
4764
|
+
*/
|
|
4765
|
+
'sendEmail'?: boolean;
|
|
4766
|
+
/**
|
|
4767
|
+
* The message shown in the card\'s email, 1 to 300 characters once the spaces around it are dropped: the buyer\'s own words. Absent or only spaces: none.
|
|
4768
|
+
* @type {string}
|
|
4769
|
+
* @memberof CreateMunchiGiftCardDto
|
|
4770
|
+
*/
|
|
4771
|
+
'message'?: string;
|
|
4760
4772
|
/**
|
|
4761
4773
|
* The country code of the buyer\'s phone, 1 to 8 characters as sent; spaces around it are dropped
|
|
4762
4774
|
* @type {string}
|
|
@@ -5045,6 +5057,33 @@ export interface CreatePaymentMethodDtoGiftCardCredentials {
|
|
|
5045
5057
|
*/
|
|
5046
5058
|
'uniquePosDeviceId'?: string;
|
|
5047
5059
|
}
|
|
5060
|
+
/**
|
|
5061
|
+
*
|
|
5062
|
+
* @export
|
|
5063
|
+
* @interface CreatePaymentTerminalDto
|
|
5064
|
+
*/
|
|
5065
|
+
export interface CreatePaymentTerminalDto {
|
|
5066
|
+
/**
|
|
5067
|
+
*
|
|
5068
|
+
* @type {TerminalProvider}
|
|
5069
|
+
* @memberof CreatePaymentTerminalDto
|
|
5070
|
+
*/
|
|
5071
|
+
'provider': TerminalProvider;
|
|
5072
|
+
/**
|
|
5073
|
+
* The provider\'s own id of the terminal, trimmed: for viva the terminal ID (TID) in Viva\'s portal, digits only (16010572); for nets the terminal ID (TID), digits only (72102200); for worldline the terminal\'s serial number, letters and digits (253SKD884468). The payment is sent to the provider with this id, so it must be the id the provider knows
|
|
5074
|
+
* @type {string}
|
|
5075
|
+
* @memberof CreatePaymentTerminalDto
|
|
5076
|
+
*/
|
|
5077
|
+
'hardwareId': string;
|
|
5078
|
+
/**
|
|
5079
|
+
* The terminal\'s name, as the venue\'s staff call it
|
|
5080
|
+
* @type {string}
|
|
5081
|
+
* @memberof CreatePaymentTerminalDto
|
|
5082
|
+
*/
|
|
5083
|
+
'label': string;
|
|
5084
|
+
}
|
|
5085
|
+
|
|
5086
|
+
|
|
5048
5087
|
/**
|
|
5049
5088
|
*
|
|
5050
5089
|
* @export
|
|
@@ -5374,7 +5413,7 @@ export interface CreateVenueGiftCardDto {
|
|
|
5374
5413
|
*/
|
|
5375
5414
|
'note'?: string;
|
|
5376
5415
|
/**
|
|
5377
|
-
* The message shown in the card\'s email, 1 to 300 characters: the buyer\'s or the store\'s own words. Absent: none.
|
|
5416
|
+
* The message shown in the card\'s email, 1 to 300 characters once the spaces around it are dropped: the buyer\'s or the store\'s own words. Absent or only spaces: none.
|
|
5378
5417
|
* @type {string}
|
|
5379
5418
|
* @memberof CreateVenueGiftCardDto
|
|
5380
5419
|
*/
|
|
@@ -27616,6 +27655,19 @@ export interface ReleasedLicenceHoldsDto {
|
|
|
27616
27655
|
*/
|
|
27617
27656
|
'nextAfterVenueId': number | null;
|
|
27618
27657
|
}
|
|
27658
|
+
/**
|
|
27659
|
+
*
|
|
27660
|
+
* @export
|
|
27661
|
+
* @interface RenamePaymentTerminalDto
|
|
27662
|
+
*/
|
|
27663
|
+
export interface RenamePaymentTerminalDto {
|
|
27664
|
+
/**
|
|
27665
|
+
* The terminal\'s new name; nothing else of the terminal changes
|
|
27666
|
+
* @type {string}
|
|
27667
|
+
* @memberof RenamePaymentTerminalDto
|
|
27668
|
+
*/
|
|
27669
|
+
'label': string;
|
|
27670
|
+
}
|
|
27619
27671
|
/**
|
|
27620
27672
|
*
|
|
27621
27673
|
* @export
|
|
@@ -34487,6 +34539,21 @@ export const TerminalConnectionType = {
|
|
|
34487
34539
|
export type TerminalConnectionType = typeof TerminalConnectionType[keyof typeof TerminalConnectionType];
|
|
34488
34540
|
|
|
34489
34541
|
|
|
34542
|
+
/**
|
|
34543
|
+
*
|
|
34544
|
+
* @export
|
|
34545
|
+
* @enum {string}
|
|
34546
|
+
*/
|
|
34547
|
+
|
|
34548
|
+
export const TerminalProvider = {
|
|
34549
|
+
Viva: 'viva',
|
|
34550
|
+
Nets: 'nets',
|
|
34551
|
+
Worldline: 'worldline'
|
|
34552
|
+
} as const;
|
|
34553
|
+
|
|
34554
|
+
export type TerminalProvider = typeof TerminalProvider[keyof typeof TerminalProvider];
|
|
34555
|
+
|
|
34556
|
+
|
|
34490
34557
|
/**
|
|
34491
34558
|
*
|
|
34492
34559
|
* @export
|
|
@@ -37615,7 +37682,7 @@ export interface UpdateVenueGiftCardDto {
|
|
|
37615
37682
|
* @type {GiftCardLanguage}
|
|
37616
37683
|
* @memberof UpdateVenueGiftCardDto
|
|
37617
37684
|
*/
|
|
37618
|
-
'language'?: GiftCardLanguage;
|
|
37685
|
+
'language'?: GiftCardLanguage | null;
|
|
37619
37686
|
}
|
|
37620
37687
|
|
|
37621
37688
|
|
|
@@ -39205,7 +39272,7 @@ export interface VenuePaymentTerminalDto {
|
|
|
39205
39272
|
*/
|
|
39206
39273
|
export interface VenuePaymentTerminalsDto {
|
|
39207
39274
|
/**
|
|
39208
|
-
* The venue\'s payment terminals as stored, oldest first; a terminal is stored once a till has discovered it
|
|
39275
|
+
* The venue\'s payment terminals as stored, oldest first; a terminal is stored once a till has discovered it at its provider, or once Munchi ops added it
|
|
39209
39276
|
* @type {Array<VenuePaymentTerminalDto>}
|
|
39210
39277
|
* @memberof VenuePaymentTerminalsDto
|
|
39211
39278
|
*/
|
|
@@ -76658,6 +76725,50 @@ export const VenueKiosksApiAxiosParamCreator = function (configuration?: Configu
|
|
|
76658
76725
|
options: localVarRequestOptions,
|
|
76659
76726
|
};
|
|
76660
76727
|
},
|
|
76728
|
+
/**
|
|
76729
|
+
* Munchi ops store a card terminal for the venue by the id its provider gives it, so a kiosk or till can take it. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161); the venue\'s own logins are refused. hardwareId is checked against its provider\'s shape: Viva\'s and Nets\' terminal ID (TID) are digits, a Worldline terminal\'s serial number letters and digits. The provider is not asked: the terminal must already be registered on the venue\'s account at the provider, or its payments are refused there. The terminal is stored free, linked to no station. A terminal id the venue already stores, under any provider, is refused; so is a Worldline terminal another venue stores, since Worldline finds a terminal by its id alone. Viva and Nets terminals may be stored at several venues, as discover stores them.
|
|
76730
|
+
* @summary Add a payment terminal to the venue (Munchi admins only)
|
|
76731
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
76732
|
+
* @param {CreatePaymentTerminalDto} createPaymentTerminalDto
|
|
76733
|
+
* @param {*} [options] Override http request option.
|
|
76734
|
+
* @throws {RequiredError}
|
|
76735
|
+
*/
|
|
76736
|
+
createVenuePaymentTerminal: async (businessId: number, createPaymentTerminalDto: CreatePaymentTerminalDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
76737
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
76738
|
+
assertParamExists('createVenuePaymentTerminal', 'businessId', businessId)
|
|
76739
|
+
// verify required parameter 'createPaymentTerminalDto' is not null or undefined
|
|
76740
|
+
assertParamExists('createVenuePaymentTerminal', 'createPaymentTerminalDto', createPaymentTerminalDto)
|
|
76741
|
+
const localVarPath = `/api/v2/venues/{businessId}/payment-terminals`
|
|
76742
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
76743
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
76744
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
76745
|
+
let baseOptions;
|
|
76746
|
+
if (configuration) {
|
|
76747
|
+
baseOptions = configuration.baseOptions;
|
|
76748
|
+
}
|
|
76749
|
+
|
|
76750
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
76751
|
+
const localVarHeaderParameter = {} as any;
|
|
76752
|
+
const localVarQueryParameter = {} as any;
|
|
76753
|
+
|
|
76754
|
+
// authentication JWT-auth required
|
|
76755
|
+
// http bearer authentication required
|
|
76756
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
76757
|
+
|
|
76758
|
+
|
|
76759
|
+
|
|
76760
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
76761
|
+
|
|
76762
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
76763
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76764
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
76765
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPaymentTerminalDto, localVarRequestOptions, configuration)
|
|
76766
|
+
|
|
76767
|
+
return {
|
|
76768
|
+
url: toPathString(localVarUrlObj),
|
|
76769
|
+
options: localVarRequestOptions,
|
|
76770
|
+
};
|
|
76771
|
+
},
|
|
76661
76772
|
/**
|
|
76662
76773
|
* paymentTerminalId names one of the venue\'s stored terminals, or null unlinks the kiosk\'s terminal. A terminal another kiosk or till holds is refused, never taken from it. The kiosk\'s kept station is forgotten, so the kiosk pays on the new terminal from its next request.
|
|
76663
76774
|
* @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
|
|
@@ -76745,7 +76856,7 @@ export const VenueKiosksApiAxiosParamCreator = function (configuration?: Configu
|
|
|
76745
76856
|
};
|
|
76746
76857
|
},
|
|
76747
76858
|
/**
|
|
76748
|
-
* The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover); this route asks no provider.
|
|
76859
|
+
* The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover), or once Munchi ops added it (POST payment-terminals); this route asks no provider.
|
|
76749
76860
|
* @summary List the venue\'s payment terminals, for linking one to a kiosk
|
|
76750
76861
|
* @param {number} businessId The venue\'s orderingBusinessId
|
|
76751
76862
|
* @param {*} [options] Override http request option.
|
|
@@ -76819,6 +76930,96 @@ export const VenueKiosksApiAxiosParamCreator = function (configuration?: Configu
|
|
|
76819
76930
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76820
76931
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
76821
76932
|
|
|
76933
|
+
return {
|
|
76934
|
+
url: toPathString(localVarUrlObj),
|
|
76935
|
+
options: localVarRequestOptions,
|
|
76936
|
+
};
|
|
76937
|
+
},
|
|
76938
|
+
/**
|
|
76939
|
+
* The terminal\'s row is deleted; payments made on it keep its id in their own records. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Refused while a kiosk or till holds the terminal, and while a payment, reversal or refund started on it in the last 24 hours is still waiting on the terminal. Both are read under a lock on the terminal, so a link made meanwhile is never undone silently. A Viva or Nets terminal still on the venue\'s provider account is stored again on a till\'s next discover.
|
|
76940
|
+
* @summary Remove a payment terminal from the venue (Munchi admins only)
|
|
76941
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
76942
|
+
* @param {string} paymentTerminalId The payment terminal\'s id, as the venue\'s terminal list answers it
|
|
76943
|
+
* @param {*} [options] Override http request option.
|
|
76944
|
+
* @throws {RequiredError}
|
|
76945
|
+
*/
|
|
76946
|
+
removeVenuePaymentTerminal: async (businessId: number, paymentTerminalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
76947
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
76948
|
+
assertParamExists('removeVenuePaymentTerminal', 'businessId', businessId)
|
|
76949
|
+
// verify required parameter 'paymentTerminalId' is not null or undefined
|
|
76950
|
+
assertParamExists('removeVenuePaymentTerminal', 'paymentTerminalId', paymentTerminalId)
|
|
76951
|
+
const localVarPath = `/api/v2/venues/{businessId}/payment-terminals/{paymentTerminalId}`
|
|
76952
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
76953
|
+
.replace(`{${"paymentTerminalId"}}`, encodeURIComponent(String(paymentTerminalId)));
|
|
76954
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
76955
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
76956
|
+
let baseOptions;
|
|
76957
|
+
if (configuration) {
|
|
76958
|
+
baseOptions = configuration.baseOptions;
|
|
76959
|
+
}
|
|
76960
|
+
|
|
76961
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
76962
|
+
const localVarHeaderParameter = {} as any;
|
|
76963
|
+
const localVarQueryParameter = {} as any;
|
|
76964
|
+
|
|
76965
|
+
// authentication JWT-auth required
|
|
76966
|
+
// http bearer authentication required
|
|
76967
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
76968
|
+
|
|
76969
|
+
|
|
76970
|
+
|
|
76971
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
76972
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76973
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
76974
|
+
|
|
76975
|
+
return {
|
|
76976
|
+
url: toPathString(localVarUrlObj),
|
|
76977
|
+
options: localVarRequestOptions,
|
|
76978
|
+
};
|
|
76979
|
+
},
|
|
76980
|
+
/**
|
|
76981
|
+
* Only the label changes; the provider and its terminal id stay, and a kiosk or till holding the terminal keeps paying on it and shows the new label from its next request. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Two renames at once both write; the later one\'s label stays.
|
|
76982
|
+
* @summary Rename one of the venue\'s payment terminals (Munchi admins only)
|
|
76983
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
76984
|
+
* @param {string} paymentTerminalId The payment terminal\'s id, as the venue\'s terminal list answers it
|
|
76985
|
+
* @param {RenamePaymentTerminalDto} renamePaymentTerminalDto
|
|
76986
|
+
* @param {*} [options] Override http request option.
|
|
76987
|
+
* @throws {RequiredError}
|
|
76988
|
+
*/
|
|
76989
|
+
renameVenuePaymentTerminal: async (businessId: number, paymentTerminalId: string, renamePaymentTerminalDto: RenamePaymentTerminalDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
76990
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
76991
|
+
assertParamExists('renameVenuePaymentTerminal', 'businessId', businessId)
|
|
76992
|
+
// verify required parameter 'paymentTerminalId' is not null or undefined
|
|
76993
|
+
assertParamExists('renameVenuePaymentTerminal', 'paymentTerminalId', paymentTerminalId)
|
|
76994
|
+
// verify required parameter 'renamePaymentTerminalDto' is not null or undefined
|
|
76995
|
+
assertParamExists('renameVenuePaymentTerminal', 'renamePaymentTerminalDto', renamePaymentTerminalDto)
|
|
76996
|
+
const localVarPath = `/api/v2/venues/{businessId}/payment-terminals/{paymentTerminalId}`
|
|
76997
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
76998
|
+
.replace(`{${"paymentTerminalId"}}`, encodeURIComponent(String(paymentTerminalId)));
|
|
76999
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
77000
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
77001
|
+
let baseOptions;
|
|
77002
|
+
if (configuration) {
|
|
77003
|
+
baseOptions = configuration.baseOptions;
|
|
77004
|
+
}
|
|
77005
|
+
|
|
77006
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
77007
|
+
const localVarHeaderParameter = {} as any;
|
|
77008
|
+
const localVarQueryParameter = {} as any;
|
|
77009
|
+
|
|
77010
|
+
// authentication JWT-auth required
|
|
77011
|
+
// http bearer authentication required
|
|
77012
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
77013
|
+
|
|
77014
|
+
|
|
77015
|
+
|
|
77016
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
77017
|
+
|
|
77018
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
77019
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
77020
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77021
|
+
localVarRequestOptions.data = serializeDataIfNeeded(renamePaymentTerminalDto, localVarRequestOptions, configuration)
|
|
77022
|
+
|
|
76822
77023
|
return {
|
|
76823
77024
|
url: toPathString(localVarUrlObj),
|
|
76824
77025
|
options: localVarRequestOptions,
|
|
@@ -76859,6 +77060,18 @@ export const VenueKiosksApiFp = function(configuration?: Configuration) {
|
|
|
76859
77060
|
const localVarAxiosArgs = await localVarAxiosParamCreator.claimVenueKiosk(businessId, claimKioskDto, options);
|
|
76860
77061
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
76861
77062
|
},
|
|
77063
|
+
/**
|
|
77064
|
+
* Munchi ops store a card terminal for the venue by the id its provider gives it, so a kiosk or till can take it. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161); the venue\'s own logins are refused. hardwareId is checked against its provider\'s shape: Viva\'s and Nets\' terminal ID (TID) are digits, a Worldline terminal\'s serial number letters and digits. The provider is not asked: the terminal must already be registered on the venue\'s account at the provider, or its payments are refused there. The terminal is stored free, linked to no station. A terminal id the venue already stores, under any provider, is refused; so is a Worldline terminal another venue stores, since Worldline finds a terminal by its id alone. Viva and Nets terminals may be stored at several venues, as discover stores them.
|
|
77065
|
+
* @summary Add a payment terminal to the venue (Munchi admins only)
|
|
77066
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
77067
|
+
* @param {CreatePaymentTerminalDto} createPaymentTerminalDto
|
|
77068
|
+
* @param {*} [options] Override http request option.
|
|
77069
|
+
* @throws {RequiredError}
|
|
77070
|
+
*/
|
|
77071
|
+
async createVenuePaymentTerminal(businessId: number, createPaymentTerminalDto: CreatePaymentTerminalDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VenuePaymentTerminalDto>> {
|
|
77072
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createVenuePaymentTerminal(businessId, createPaymentTerminalDto, options);
|
|
77073
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
77074
|
+
},
|
|
76862
77075
|
/**
|
|
76863
77076
|
* paymentTerminalId names one of the venue\'s stored terminals, or null unlinks the kiosk\'s terminal. A terminal another kiosk or till holds is refused, never taken from it. The kiosk\'s kept station is forgotten, so the kiosk pays on the new terminal from its next request.
|
|
76864
77077
|
* @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
|
|
@@ -76884,7 +77097,7 @@ export const VenueKiosksApiFp = function(configuration?: Configuration) {
|
|
|
76884
77097
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
76885
77098
|
},
|
|
76886
77099
|
/**
|
|
76887
|
-
* The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover); this route asks no provider.
|
|
77100
|
+
* The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover), or once Munchi ops added it (POST payment-terminals); this route asks no provider.
|
|
76888
77101
|
* @summary List the venue\'s payment terminals, for linking one to a kiosk
|
|
76889
77102
|
* @param {number} businessId The venue\'s orderingBusinessId
|
|
76890
77103
|
* @param {*} [options] Override http request option.
|
|
@@ -76906,6 +77119,31 @@ export const VenueKiosksApiFp = function(configuration?: Configuration) {
|
|
|
76906
77119
|
const localVarAxiosArgs = await localVarAxiosParamCreator.removeVenueKiosk(businessId, stationId, options);
|
|
76907
77120
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
76908
77121
|
},
|
|
77122
|
+
/**
|
|
77123
|
+
* The terminal\'s row is deleted; payments made on it keep its id in their own records. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Refused while a kiosk or till holds the terminal, and while a payment, reversal or refund started on it in the last 24 hours is still waiting on the terminal. Both are read under a lock on the terminal, so a link made meanwhile is never undone silently. A Viva or Nets terminal still on the venue\'s provider account is stored again on a till\'s next discover.
|
|
77124
|
+
* @summary Remove a payment terminal from the venue (Munchi admins only)
|
|
77125
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
77126
|
+
* @param {string} paymentTerminalId The payment terminal\'s id, as the venue\'s terminal list answers it
|
|
77127
|
+
* @param {*} [options] Override http request option.
|
|
77128
|
+
* @throws {RequiredError}
|
|
77129
|
+
*/
|
|
77130
|
+
async removeVenuePaymentTerminal(businessId: number, paymentTerminalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VenuePaymentTerminalDto>> {
|
|
77131
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeVenuePaymentTerminal(businessId, paymentTerminalId, options);
|
|
77132
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
77133
|
+
},
|
|
77134
|
+
/**
|
|
77135
|
+
* Only the label changes; the provider and its terminal id stay, and a kiosk or till holding the terminal keeps paying on it and shows the new label from its next request. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Two renames at once both write; the later one\'s label stays.
|
|
77136
|
+
* @summary Rename one of the venue\'s payment terminals (Munchi admins only)
|
|
77137
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
77138
|
+
* @param {string} paymentTerminalId The payment terminal\'s id, as the venue\'s terminal list answers it
|
|
77139
|
+
* @param {RenamePaymentTerminalDto} renamePaymentTerminalDto
|
|
77140
|
+
* @param {*} [options] Override http request option.
|
|
77141
|
+
* @throws {RequiredError}
|
|
77142
|
+
*/
|
|
77143
|
+
async renameVenuePaymentTerminal(businessId: number, paymentTerminalId: string, renamePaymentTerminalDto: RenamePaymentTerminalDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VenuePaymentTerminalDto>> {
|
|
77144
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.renameVenuePaymentTerminal(businessId, paymentTerminalId, renamePaymentTerminalDto, options);
|
|
77145
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
77146
|
+
},
|
|
76909
77147
|
}
|
|
76910
77148
|
};
|
|
76911
77149
|
|
|
@@ -76939,6 +77177,17 @@ export const VenueKiosksApiFactory = function (configuration?: Configuration, ba
|
|
|
76939
77177
|
claimVenueKiosk(businessId: number, claimKioskDto: ClaimKioskDto, options?: any): AxiosPromise<VenueKioskDto> {
|
|
76940
77178
|
return localVarFp.claimVenueKiosk(businessId, claimKioskDto, options).then((request) => request(axios, basePath));
|
|
76941
77179
|
},
|
|
77180
|
+
/**
|
|
77181
|
+
* Munchi ops store a card terminal for the venue by the id its provider gives it, so a kiosk or till can take it. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161); the venue\'s own logins are refused. hardwareId is checked against its provider\'s shape: Viva\'s and Nets\' terminal ID (TID) are digits, a Worldline terminal\'s serial number letters and digits. The provider is not asked: the terminal must already be registered on the venue\'s account at the provider, or its payments are refused there. The terminal is stored free, linked to no station. A terminal id the venue already stores, under any provider, is refused; so is a Worldline terminal another venue stores, since Worldline finds a terminal by its id alone. Viva and Nets terminals may be stored at several venues, as discover stores them.
|
|
77182
|
+
* @summary Add a payment terminal to the venue (Munchi admins only)
|
|
77183
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
77184
|
+
* @param {CreatePaymentTerminalDto} createPaymentTerminalDto
|
|
77185
|
+
* @param {*} [options] Override http request option.
|
|
77186
|
+
* @throws {RequiredError}
|
|
77187
|
+
*/
|
|
77188
|
+
createVenuePaymentTerminal(businessId: number, createPaymentTerminalDto: CreatePaymentTerminalDto, options?: any): AxiosPromise<VenuePaymentTerminalDto> {
|
|
77189
|
+
return localVarFp.createVenuePaymentTerminal(businessId, createPaymentTerminalDto, options).then((request) => request(axios, basePath));
|
|
77190
|
+
},
|
|
76942
77191
|
/**
|
|
76943
77192
|
* paymentTerminalId names one of the venue\'s stored terminals, or null unlinks the kiosk\'s terminal. A terminal another kiosk or till holds is refused, never taken from it. The kiosk\'s kept station is forgotten, so the kiosk pays on the new terminal from its next request.
|
|
76944
77193
|
* @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
|
|
@@ -76962,7 +77211,7 @@ export const VenueKiosksApiFactory = function (configuration?: Configuration, ba
|
|
|
76962
77211
|
return localVarFp.listVenueKiosks(businessId, options).then((request) => request(axios, basePath));
|
|
76963
77212
|
},
|
|
76964
77213
|
/**
|
|
76965
|
-
* The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover); this route asks no provider.
|
|
77214
|
+
* The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover), or once Munchi ops added it (POST payment-terminals); this route asks no provider.
|
|
76966
77215
|
* @summary List the venue\'s payment terminals, for linking one to a kiosk
|
|
76967
77216
|
* @param {number} businessId The venue\'s orderingBusinessId
|
|
76968
77217
|
* @param {*} [options] Override http request option.
|
|
@@ -76982,6 +77231,29 @@ export const VenueKiosksApiFactory = function (configuration?: Configuration, ba
|
|
|
76982
77231
|
removeVenueKiosk(businessId: number, stationId: string, options?: any): AxiosPromise<VenueKioskDto> {
|
|
76983
77232
|
return localVarFp.removeVenueKiosk(businessId, stationId, options).then((request) => request(axios, basePath));
|
|
76984
77233
|
},
|
|
77234
|
+
/**
|
|
77235
|
+
* The terminal\'s row is deleted; payments made on it keep its id in their own records. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Refused while a kiosk or till holds the terminal, and while a payment, reversal or refund started on it in the last 24 hours is still waiting on the terminal. Both are read under a lock on the terminal, so a link made meanwhile is never undone silently. A Viva or Nets terminal still on the venue\'s provider account is stored again on a till\'s next discover.
|
|
77236
|
+
* @summary Remove a payment terminal from the venue (Munchi admins only)
|
|
77237
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
77238
|
+
* @param {string} paymentTerminalId The payment terminal\'s id, as the venue\'s terminal list answers it
|
|
77239
|
+
* @param {*} [options] Override http request option.
|
|
77240
|
+
* @throws {RequiredError}
|
|
77241
|
+
*/
|
|
77242
|
+
removeVenuePaymentTerminal(businessId: number, paymentTerminalId: string, options?: any): AxiosPromise<VenuePaymentTerminalDto> {
|
|
77243
|
+
return localVarFp.removeVenuePaymentTerminal(businessId, paymentTerminalId, options).then((request) => request(axios, basePath));
|
|
77244
|
+
},
|
|
77245
|
+
/**
|
|
77246
|
+
* Only the label changes; the provider and its terminal id stay, and a kiosk or till holding the terminal keeps paying on it and shows the new label from its next request. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Two renames at once both write; the later one\'s label stays.
|
|
77247
|
+
* @summary Rename one of the venue\'s payment terminals (Munchi admins only)
|
|
77248
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
77249
|
+
* @param {string} paymentTerminalId The payment terminal\'s id, as the venue\'s terminal list answers it
|
|
77250
|
+
* @param {RenamePaymentTerminalDto} renamePaymentTerminalDto
|
|
77251
|
+
* @param {*} [options] Override http request option.
|
|
77252
|
+
* @throws {RequiredError}
|
|
77253
|
+
*/
|
|
77254
|
+
renameVenuePaymentTerminal(businessId: number, paymentTerminalId: string, renamePaymentTerminalDto: RenamePaymentTerminalDto, options?: any): AxiosPromise<VenuePaymentTerminalDto> {
|
|
77255
|
+
return localVarFp.renameVenuePaymentTerminal(businessId, paymentTerminalId, renamePaymentTerminalDto, options).then((request) => request(axios, basePath));
|
|
77256
|
+
},
|
|
76985
77257
|
};
|
|
76986
77258
|
};
|
|
76987
77259
|
|
|
@@ -77014,6 +77286,17 @@ export interface VenueKiosksApiInterface {
|
|
|
77014
77286
|
*/
|
|
77015
77287
|
claimVenueKiosk(businessId: number, claimKioskDto: ClaimKioskDto, options?: AxiosRequestConfig): AxiosPromise<VenueKioskDto>;
|
|
77016
77288
|
|
|
77289
|
+
/**
|
|
77290
|
+
* Munchi ops store a card terminal for the venue by the id its provider gives it, so a kiosk or till can take it. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161); the venue\'s own logins are refused. hardwareId is checked against its provider\'s shape: Viva\'s and Nets\' terminal ID (TID) are digits, a Worldline terminal\'s serial number letters and digits. The provider is not asked: the terminal must already be registered on the venue\'s account at the provider, or its payments are refused there. The terminal is stored free, linked to no station. A terminal id the venue already stores, under any provider, is refused; so is a Worldline terminal another venue stores, since Worldline finds a terminal by its id alone. Viva and Nets terminals may be stored at several venues, as discover stores them.
|
|
77291
|
+
* @summary Add a payment terminal to the venue (Munchi admins only)
|
|
77292
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
77293
|
+
* @param {CreatePaymentTerminalDto} createPaymentTerminalDto
|
|
77294
|
+
* @param {*} [options] Override http request option.
|
|
77295
|
+
* @throws {RequiredError}
|
|
77296
|
+
* @memberof VenueKiosksApiInterface
|
|
77297
|
+
*/
|
|
77298
|
+
createVenuePaymentTerminal(businessId: number, createPaymentTerminalDto: CreatePaymentTerminalDto, options?: AxiosRequestConfig): AxiosPromise<VenuePaymentTerminalDto>;
|
|
77299
|
+
|
|
77017
77300
|
/**
|
|
77018
77301
|
* paymentTerminalId names one of the venue\'s stored terminals, or null unlinks the kiosk\'s terminal. A terminal another kiosk or till holds is refused, never taken from it. The kiosk\'s kept station is forgotten, so the kiosk pays on the new terminal from its next request.
|
|
77019
77302
|
* @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
|
|
@@ -77037,7 +77320,7 @@ export interface VenueKiosksApiInterface {
|
|
|
77037
77320
|
listVenueKiosks(businessId: number, options?: AxiosRequestConfig): AxiosPromise<VenueKiosksDto>;
|
|
77038
77321
|
|
|
77039
77322
|
/**
|
|
77040
|
-
* The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover); this route asks no provider.
|
|
77323
|
+
* The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover), or once Munchi ops added it (POST payment-terminals); this route asks no provider.
|
|
77041
77324
|
* @summary List the venue\'s payment terminals, for linking one to a kiosk
|
|
77042
77325
|
* @param {number} businessId The venue\'s orderingBusinessId
|
|
77043
77326
|
* @param {*} [options] Override http request option.
|
|
@@ -77057,6 +77340,29 @@ export interface VenueKiosksApiInterface {
|
|
|
77057
77340
|
*/
|
|
77058
77341
|
removeVenueKiosk(businessId: number, stationId: string, options?: AxiosRequestConfig): AxiosPromise<VenueKioskDto>;
|
|
77059
77342
|
|
|
77343
|
+
/**
|
|
77344
|
+
* The terminal\'s row is deleted; payments made on it keep its id in their own records. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Refused while a kiosk or till holds the terminal, and while a payment, reversal or refund started on it in the last 24 hours is still waiting on the terminal. Both are read under a lock on the terminal, so a link made meanwhile is never undone silently. A Viva or Nets terminal still on the venue\'s provider account is stored again on a till\'s next discover.
|
|
77345
|
+
* @summary Remove a payment terminal from the venue (Munchi admins only)
|
|
77346
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
77347
|
+
* @param {string} paymentTerminalId The payment terminal\'s id, as the venue\'s terminal list answers it
|
|
77348
|
+
* @param {*} [options] Override http request option.
|
|
77349
|
+
* @throws {RequiredError}
|
|
77350
|
+
* @memberof VenueKiosksApiInterface
|
|
77351
|
+
*/
|
|
77352
|
+
removeVenuePaymentTerminal(businessId: number, paymentTerminalId: string, options?: AxiosRequestConfig): AxiosPromise<VenuePaymentTerminalDto>;
|
|
77353
|
+
|
|
77354
|
+
/**
|
|
77355
|
+
* Only the label changes; the provider and its terminal id stay, and a kiosk or till holding the terminal keeps paying on it and shows the new label from its next request. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Two renames at once both write; the later one\'s label stays.
|
|
77356
|
+
* @summary Rename one of the venue\'s payment terminals (Munchi admins only)
|
|
77357
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
77358
|
+
* @param {string} paymentTerminalId The payment terminal\'s id, as the venue\'s terminal list answers it
|
|
77359
|
+
* @param {RenamePaymentTerminalDto} renamePaymentTerminalDto
|
|
77360
|
+
* @param {*} [options] Override http request option.
|
|
77361
|
+
* @throws {RequiredError}
|
|
77362
|
+
* @memberof VenueKiosksApiInterface
|
|
77363
|
+
*/
|
|
77364
|
+
renameVenuePaymentTerminal(businessId: number, paymentTerminalId: string, renamePaymentTerminalDto: RenamePaymentTerminalDto, options?: AxiosRequestConfig): AxiosPromise<VenuePaymentTerminalDto>;
|
|
77365
|
+
|
|
77060
77366
|
}
|
|
77061
77367
|
|
|
77062
77368
|
/**
|
|
@@ -77093,6 +77399,19 @@ export class VenueKiosksApi extends BaseAPI implements VenueKiosksApiInterface {
|
|
|
77093
77399
|
return VenueKiosksApiFp(this.configuration).claimVenueKiosk(businessId, claimKioskDto, options).then((request) => request(this.axios, this.basePath));
|
|
77094
77400
|
}
|
|
77095
77401
|
|
|
77402
|
+
/**
|
|
77403
|
+
* Munchi ops store a card terminal for the venue by the id its provider gives it, so a kiosk or till can take it. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161); the venue\'s own logins are refused. hardwareId is checked against its provider\'s shape: Viva\'s and Nets\' terminal ID (TID) are digits, a Worldline terminal\'s serial number letters and digits. The provider is not asked: the terminal must already be registered on the venue\'s account at the provider, or its payments are refused there. The terminal is stored free, linked to no station. A terminal id the venue already stores, under any provider, is refused; so is a Worldline terminal another venue stores, since Worldline finds a terminal by its id alone. Viva and Nets terminals may be stored at several venues, as discover stores them.
|
|
77404
|
+
* @summary Add a payment terminal to the venue (Munchi admins only)
|
|
77405
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
77406
|
+
* @param {CreatePaymentTerminalDto} createPaymentTerminalDto
|
|
77407
|
+
* @param {*} [options] Override http request option.
|
|
77408
|
+
* @throws {RequiredError}
|
|
77409
|
+
* @memberof VenueKiosksApi
|
|
77410
|
+
*/
|
|
77411
|
+
public createVenuePaymentTerminal(businessId: number, createPaymentTerminalDto: CreatePaymentTerminalDto, options?: AxiosRequestConfig) {
|
|
77412
|
+
return VenueKiosksApiFp(this.configuration).createVenuePaymentTerminal(businessId, createPaymentTerminalDto, options).then((request) => request(this.axios, this.basePath));
|
|
77413
|
+
}
|
|
77414
|
+
|
|
77096
77415
|
/**
|
|
77097
77416
|
* paymentTerminalId names one of the venue\'s stored terminals, or null unlinks the kiosk\'s terminal. A terminal another kiosk or till holds is refused, never taken from it. The kiosk\'s kept station is forgotten, so the kiosk pays on the new terminal from its next request.
|
|
77098
77417
|
* @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
|
|
@@ -77120,7 +77439,7 @@ export class VenueKiosksApi extends BaseAPI implements VenueKiosksApiInterface {
|
|
|
77120
77439
|
}
|
|
77121
77440
|
|
|
77122
77441
|
/**
|
|
77123
|
-
* The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover); this route asks no provider.
|
|
77442
|
+
* The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover), or once Munchi ops added it (POST payment-terminals); this route asks no provider.
|
|
77124
77443
|
* @summary List the venue\'s payment terminals, for linking one to a kiosk
|
|
77125
77444
|
* @param {number} businessId The venue\'s orderingBusinessId
|
|
77126
77445
|
* @param {*} [options] Override http request option.
|
|
@@ -77143,6 +77462,33 @@ export class VenueKiosksApi extends BaseAPI implements VenueKiosksApiInterface {
|
|
|
77143
77462
|
public removeVenueKiosk(businessId: number, stationId: string, options?: AxiosRequestConfig) {
|
|
77144
77463
|
return VenueKiosksApiFp(this.configuration).removeVenueKiosk(businessId, stationId, options).then((request) => request(this.axios, this.basePath));
|
|
77145
77464
|
}
|
|
77465
|
+
|
|
77466
|
+
/**
|
|
77467
|
+
* The terminal\'s row is deleted; payments made on it keep its id in their own records. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Refused while a kiosk or till holds the terminal, and while a payment, reversal or refund started on it in the last 24 hours is still waiting on the terminal. Both are read under a lock on the terminal, so a link made meanwhile is never undone silently. A Viva or Nets terminal still on the venue\'s provider account is stored again on a till\'s next discover.
|
|
77468
|
+
* @summary Remove a payment terminal from the venue (Munchi admins only)
|
|
77469
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
77470
|
+
* @param {string} paymentTerminalId The payment terminal\'s id, as the venue\'s terminal list answers it
|
|
77471
|
+
* @param {*} [options] Override http request option.
|
|
77472
|
+
* @throws {RequiredError}
|
|
77473
|
+
* @memberof VenueKiosksApi
|
|
77474
|
+
*/
|
|
77475
|
+
public removeVenuePaymentTerminal(businessId: number, paymentTerminalId: string, options?: AxiosRequestConfig) {
|
|
77476
|
+
return VenueKiosksApiFp(this.configuration).removeVenuePaymentTerminal(businessId, paymentTerminalId, options).then((request) => request(this.axios, this.basePath));
|
|
77477
|
+
}
|
|
77478
|
+
|
|
77479
|
+
/**
|
|
77480
|
+
* Only the label changes; the provider and its terminal id stay, and a kiosk or till holding the terminal keeps paying on it and shows the new label from its next request. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Two renames at once both write; the later one\'s label stays.
|
|
77481
|
+
* @summary Rename one of the venue\'s payment terminals (Munchi admins only)
|
|
77482
|
+
* @param {number} businessId The venue\'s orderingBusinessId
|
|
77483
|
+
* @param {string} paymentTerminalId The payment terminal\'s id, as the venue\'s terminal list answers it
|
|
77484
|
+
* @param {RenamePaymentTerminalDto} renamePaymentTerminalDto
|
|
77485
|
+
* @param {*} [options] Override http request option.
|
|
77486
|
+
* @throws {RequiredError}
|
|
77487
|
+
* @memberof VenueKiosksApi
|
|
77488
|
+
*/
|
|
77489
|
+
public renameVenuePaymentTerminal(businessId: number, paymentTerminalId: string, renamePaymentTerminalDto: RenamePaymentTerminalDto, options?: AxiosRequestConfig) {
|
|
77490
|
+
return VenueKiosksApiFp(this.configuration).renameVenuePaymentTerminal(businessId, paymentTerminalId, renamePaymentTerminalDto, options).then((request) => request(this.axios, this.basePath));
|
|
77491
|
+
}
|
|
77146
77492
|
}
|
|
77147
77493
|
|
|
77148
77494
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@munchi_oy/core",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.1",
|
|
4
4
|
"description": "Munchi Core SDK - Core utilities and types",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -25,6 +25,16 @@
|
|
|
25
25
|
"react-native": "./index.ts"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"lodash": "^4.17.21",
|
|
30
|
+
"@types/lodash": "^4.17.16",
|
|
31
|
+
"tsup": "^8.0.0",
|
|
32
|
+
"typescript": "^5.0.0"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"lodash": "^4.17.21",
|
|
36
|
+
"axios": ">=1.0.0"
|
|
37
|
+
},
|
|
28
38
|
"scripts": {
|
|
29
39
|
"test": "jest",
|
|
30
40
|
"test:watch": "jest --watch",
|
|
@@ -35,18 +45,6 @@
|
|
|
35
45
|
"build:types": "tsc -p tsconfig.build.json",
|
|
36
46
|
"build": "pnpm run build:runtime && pnpm run build:types",
|
|
37
47
|
"yalc:publish": "pnpm build && yalc publish --push",
|
|
38
|
-
"dev": "tsup --watch"
|
|
39
|
-
"prepare": "npm run build",
|
|
40
|
-
"prepublishOnly": "pnpm build"
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"lodash": "^4.17.21",
|
|
44
|
-
"@types/lodash": "^4.17.16",
|
|
45
|
-
"tsup": "^8.0.0",
|
|
46
|
-
"typescript": "^5.0.0"
|
|
47
|
-
},
|
|
48
|
-
"peerDependencies": {
|
|
49
|
-
"lodash": "^4.17.21",
|
|
50
|
-
"axios": ">=1.0.0"
|
|
48
|
+
"dev": "tsup --watch"
|
|
51
49
|
}
|
|
52
|
-
}
|
|
50
|
+
}
|
package/src/version.ts
CHANGED