@munchi_oy/core 1.8.6 → 1.9.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/dist/generated/api.d.ts +209 -83
- 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 +258 -122
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -2947,6 +2947,68 @@ export interface CreateInvoiceCompanyDto {
|
|
|
2947
2947
|
*/
|
|
2948
2948
|
'address'?: string;
|
|
2949
2949
|
}
|
|
2950
|
+
/**
|
|
2951
|
+
*
|
|
2952
|
+
* @export
|
|
2953
|
+
* @interface CreateLoyaltyProgramUserDto
|
|
2954
|
+
*/
|
|
2955
|
+
export interface CreateLoyaltyProgramUserDto {
|
|
2956
|
+
/**
|
|
2957
|
+
*
|
|
2958
|
+
* @type {string}
|
|
2959
|
+
* @memberof CreateLoyaltyProgramUserDto
|
|
2960
|
+
*/
|
|
2961
|
+
'first_name': string;
|
|
2962
|
+
/**
|
|
2963
|
+
*
|
|
2964
|
+
* @type {string}
|
|
2965
|
+
* @memberof CreateLoyaltyProgramUserDto
|
|
2966
|
+
*/
|
|
2967
|
+
'last_name': string;
|
|
2968
|
+
/**
|
|
2969
|
+
*
|
|
2970
|
+
* @type {string}
|
|
2971
|
+
* @memberof CreateLoyaltyProgramUserDto
|
|
2972
|
+
*/
|
|
2973
|
+
'email': string;
|
|
2974
|
+
/**
|
|
2975
|
+
*
|
|
2976
|
+
* @type {string}
|
|
2977
|
+
* @memberof CreateLoyaltyProgramUserDto
|
|
2978
|
+
*/
|
|
2979
|
+
'country_code': string;
|
|
2980
|
+
/**
|
|
2981
|
+
*
|
|
2982
|
+
* @type {string}
|
|
2983
|
+
* @memberof CreateLoyaltyProgramUserDto
|
|
2984
|
+
*/
|
|
2985
|
+
'phone': string;
|
|
2986
|
+
/**
|
|
2987
|
+
*
|
|
2988
|
+
* @type {string}
|
|
2989
|
+
* @memberof CreateLoyaltyProgramUserDto
|
|
2990
|
+
*/
|
|
2991
|
+
'date_of_birth'?: string;
|
|
2992
|
+
}
|
|
2993
|
+
/**
|
|
2994
|
+
*
|
|
2995
|
+
* @export
|
|
2996
|
+
* @interface CreateLoyaltyProgramUserResponseDto
|
|
2997
|
+
*/
|
|
2998
|
+
export interface CreateLoyaltyProgramUserResponseDto {
|
|
2999
|
+
/**
|
|
3000
|
+
*
|
|
3001
|
+
* @type {ProgramUserDto}
|
|
3002
|
+
* @memberof CreateLoyaltyProgramUserResponseDto
|
|
3003
|
+
*/
|
|
3004
|
+
'user': ProgramUserDto;
|
|
3005
|
+
/**
|
|
3006
|
+
*
|
|
3007
|
+
* @type {LoyaltyAccountDto}
|
|
3008
|
+
* @memberof CreateLoyaltyProgramUserResponseDto
|
|
3009
|
+
*/
|
|
3010
|
+
'loyaltyAccount': LoyaltyAccountDto;
|
|
3011
|
+
}
|
|
2950
3012
|
/**
|
|
2951
3013
|
*
|
|
2952
3014
|
* @export
|
|
@@ -4739,6 +4801,12 @@ export interface GetStationResponseDtoStation {
|
|
|
4739
4801
|
* @memberof GetStationResponseDtoStation
|
|
4740
4802
|
*/
|
|
4741
4803
|
'prefix': string;
|
|
4804
|
+
/**
|
|
4805
|
+
*
|
|
4806
|
+
* @type {object}
|
|
4807
|
+
* @memberof GetStationResponseDtoStation
|
|
4808
|
+
*/
|
|
4809
|
+
'settings'?: object;
|
|
4742
4810
|
/**
|
|
4743
4811
|
*
|
|
4744
4812
|
* @type {object}
|
|
@@ -15025,6 +15093,12 @@ export interface StationDetailsDto {
|
|
|
15025
15093
|
* @memberof StationDetailsDto
|
|
15026
15094
|
*/
|
|
15027
15095
|
'prefix': string;
|
|
15096
|
+
/**
|
|
15097
|
+
*
|
|
15098
|
+
* @type {object}
|
|
15099
|
+
* @memberof StationDetailsDto
|
|
15100
|
+
*/
|
|
15101
|
+
'settings'?: object;
|
|
15028
15102
|
/**
|
|
15029
15103
|
*
|
|
15030
15104
|
* @type {object}
|
|
@@ -15112,11 +15186,96 @@ export interface StationDetailsDtoPaymentTerminal {
|
|
|
15112
15186
|
*/
|
|
15113
15187
|
export interface StationSyncResponseDto {
|
|
15114
15188
|
/**
|
|
15115
|
-
*
|
|
15116
|
-
* @type {
|
|
15189
|
+
*
|
|
15190
|
+
* @type {StationSyncResponseDtoStation}
|
|
15117
15191
|
* @memberof StationSyncResponseDto
|
|
15118
15192
|
*/
|
|
15119
|
-
'
|
|
15193
|
+
'station': StationSyncResponseDtoStation;
|
|
15194
|
+
}
|
|
15195
|
+
/**
|
|
15196
|
+
* The synced station data
|
|
15197
|
+
* @export
|
|
15198
|
+
* @interface StationSyncResponseDtoStation
|
|
15199
|
+
*/
|
|
15200
|
+
export interface StationSyncResponseDtoStation {
|
|
15201
|
+
/**
|
|
15202
|
+
*
|
|
15203
|
+
* @type {string}
|
|
15204
|
+
* @memberof StationSyncResponseDtoStation
|
|
15205
|
+
*/
|
|
15206
|
+
'id': string;
|
|
15207
|
+
/**
|
|
15208
|
+
*
|
|
15209
|
+
* @type {string}
|
|
15210
|
+
* @memberof StationSyncResponseDtoStation
|
|
15211
|
+
*/
|
|
15212
|
+
'name': string;
|
|
15213
|
+
/**
|
|
15214
|
+
*
|
|
15215
|
+
* @type {string}
|
|
15216
|
+
* @memberof StationSyncResponseDtoStation
|
|
15217
|
+
*/
|
|
15218
|
+
'hardwareId': string;
|
|
15219
|
+
/**
|
|
15220
|
+
*
|
|
15221
|
+
* @type {StationType}
|
|
15222
|
+
* @memberof StationSyncResponseDtoStation
|
|
15223
|
+
*/
|
|
15224
|
+
'type': StationType;
|
|
15225
|
+
/**
|
|
15226
|
+
*
|
|
15227
|
+
* @type {DeviceType}
|
|
15228
|
+
* @memberof StationSyncResponseDtoStation
|
|
15229
|
+
*/
|
|
15230
|
+
'deviceType'?: DeviceType;
|
|
15231
|
+
/**
|
|
15232
|
+
*
|
|
15233
|
+
* @type {Status}
|
|
15234
|
+
* @memberof StationSyncResponseDtoStation
|
|
15235
|
+
*/
|
|
15236
|
+
'status': Status;
|
|
15237
|
+
/**
|
|
15238
|
+
*
|
|
15239
|
+
* @type {number}
|
|
15240
|
+
* @memberof StationSyncResponseDtoStation
|
|
15241
|
+
*/
|
|
15242
|
+
'orderingBusinessId': number;
|
|
15243
|
+
/**
|
|
15244
|
+
*
|
|
15245
|
+
* @type {string}
|
|
15246
|
+
* @memberof StationSyncResponseDtoStation
|
|
15247
|
+
*/
|
|
15248
|
+
'prefix': string;
|
|
15249
|
+
/**
|
|
15250
|
+
*
|
|
15251
|
+
* @type {object}
|
|
15252
|
+
* @memberof StationSyncResponseDtoStation
|
|
15253
|
+
*/
|
|
15254
|
+
'settings'?: object;
|
|
15255
|
+
/**
|
|
15256
|
+
*
|
|
15257
|
+
* @type {object}
|
|
15258
|
+
* @memberof StationSyncResponseDtoStation
|
|
15259
|
+
*/
|
|
15260
|
+
'metadata'?: object;
|
|
15261
|
+
/**
|
|
15262
|
+
* Timestamp when the station record was created.
|
|
15263
|
+
* @type {string}
|
|
15264
|
+
* @memberof StationSyncResponseDtoStation
|
|
15265
|
+
*/
|
|
15266
|
+
'createdAt': string;
|
|
15267
|
+
/**
|
|
15268
|
+
* Timestamp when the station record was last updated.
|
|
15269
|
+
* @type {string}
|
|
15270
|
+
* @memberof StationSyncResponseDtoStation
|
|
15271
|
+
*/
|
|
15272
|
+
'updatedAt': string;
|
|
15273
|
+
/**
|
|
15274
|
+
*
|
|
15275
|
+
* @type {StationDetailsDtoPaymentTerminal}
|
|
15276
|
+
* @memberof StationSyncResponseDtoStation
|
|
15277
|
+
*/
|
|
15278
|
+
'paymentTerminal'?: StationDetailsDtoPaymentTerminal | null;
|
|
15120
15279
|
}
|
|
15121
15280
|
/**
|
|
15122
15281
|
*
|
|
@@ -15359,49 +15518,6 @@ export interface SyncStationDto {
|
|
|
15359
15518
|
*/
|
|
15360
15519
|
'metadata'?: object;
|
|
15361
15520
|
}
|
|
15362
|
-
/**
|
|
15363
|
-
*
|
|
15364
|
-
* @export
|
|
15365
|
-
* @interface SyncTerminalDto
|
|
15366
|
-
*/
|
|
15367
|
-
export interface SyncTerminalDto {
|
|
15368
|
-
/**
|
|
15369
|
-
* Hardware ID of the station to connect the terminal to
|
|
15370
|
-
* @type {string}
|
|
15371
|
-
* @memberof SyncTerminalDto
|
|
15372
|
-
*/
|
|
15373
|
-
'stationHardwareId': string;
|
|
15374
|
-
/**
|
|
15375
|
-
* Hardware ID of the payment terminal
|
|
15376
|
-
* @type {string}
|
|
15377
|
-
* @memberof SyncTerminalDto
|
|
15378
|
-
*/
|
|
15379
|
-
'terminalId': string;
|
|
15380
|
-
/**
|
|
15381
|
-
*
|
|
15382
|
-
* @type {PaymentProvider}
|
|
15383
|
-
* @memberof SyncTerminalDto
|
|
15384
|
-
*/
|
|
15385
|
-
'provider': PaymentProvider;
|
|
15386
|
-
/**
|
|
15387
|
-
* Label/name for the terminal
|
|
15388
|
-
* @type {string}
|
|
15389
|
-
* @memberof SyncTerminalDto
|
|
15390
|
-
*/
|
|
15391
|
-
'label'?: string;
|
|
15392
|
-
/**
|
|
15393
|
-
*
|
|
15394
|
-
* @type {TerminalConnectionType}
|
|
15395
|
-
* @memberof SyncTerminalDto
|
|
15396
|
-
*/
|
|
15397
|
-
'connectionType'?: TerminalConnectionType;
|
|
15398
|
-
/**
|
|
15399
|
-
* Business ID that owns the terminal
|
|
15400
|
-
* @type {number}
|
|
15401
|
-
* @memberof SyncTerminalDto
|
|
15402
|
-
*/
|
|
15403
|
-
'businessId': number;
|
|
15404
|
-
}
|
|
15405
15521
|
/**
|
|
15406
15522
|
*
|
|
15407
15523
|
* @export
|
|
@@ -24436,6 +24552,15 @@ export declare class KiosksApi extends BaseAPI implements KiosksApiInterface {
|
|
|
24436
24552
|
* @export
|
|
24437
24553
|
*/
|
|
24438
24554
|
export declare const LoyaltyIntegerationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24555
|
+
/**
|
|
24556
|
+
*
|
|
24557
|
+
* @summary Create loyalty user
|
|
24558
|
+
* @param {number} businessId
|
|
24559
|
+
* @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
|
|
24560
|
+
* @param {*} [options] Override http request option.
|
|
24561
|
+
* @throws {RequiredError}
|
|
24562
|
+
*/
|
|
24563
|
+
createLoyaltyUser: (businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
24439
24564
|
/**
|
|
24440
24565
|
*
|
|
24441
24566
|
* @summary Get admin transaction history
|
|
@@ -24489,6 +24614,15 @@ export declare const LoyaltyIntegerationsApiAxiosParamCreator: (configuration?:
|
|
|
24489
24614
|
* @export
|
|
24490
24615
|
*/
|
|
24491
24616
|
export declare const LoyaltyIntegerationsApiFp: (configuration?: Configuration) => {
|
|
24617
|
+
/**
|
|
24618
|
+
*
|
|
24619
|
+
* @summary Create loyalty user
|
|
24620
|
+
* @param {number} businessId
|
|
24621
|
+
* @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
|
|
24622
|
+
* @param {*} [options] Override http request option.
|
|
24623
|
+
* @throws {RequiredError}
|
|
24624
|
+
*/
|
|
24625
|
+
createLoyaltyUser(businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLoyaltyProgramUserResponseDto>>;
|
|
24492
24626
|
/**
|
|
24493
24627
|
*
|
|
24494
24628
|
* @summary Get admin transaction history
|
|
@@ -24542,6 +24676,15 @@ export declare const LoyaltyIntegerationsApiFp: (configuration?: Configuration)
|
|
|
24542
24676
|
* @export
|
|
24543
24677
|
*/
|
|
24544
24678
|
export declare const LoyaltyIntegerationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
24679
|
+
/**
|
|
24680
|
+
*
|
|
24681
|
+
* @summary Create loyalty user
|
|
24682
|
+
* @param {number} businessId
|
|
24683
|
+
* @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
|
|
24684
|
+
* @param {*} [options] Override http request option.
|
|
24685
|
+
* @throws {RequiredError}
|
|
24686
|
+
*/
|
|
24687
|
+
createLoyaltyUser(businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options?: any): AxiosPromise<CreateLoyaltyProgramUserResponseDto>;
|
|
24545
24688
|
/**
|
|
24546
24689
|
*
|
|
24547
24690
|
* @summary Get admin transaction history
|
|
@@ -24596,6 +24739,16 @@ export declare const LoyaltyIntegerationsApiFactory: (configuration?: Configurat
|
|
|
24596
24739
|
* @interface LoyaltyIntegerationsApi
|
|
24597
24740
|
*/
|
|
24598
24741
|
export interface LoyaltyIntegerationsApiInterface {
|
|
24742
|
+
/**
|
|
24743
|
+
*
|
|
24744
|
+
* @summary Create loyalty user
|
|
24745
|
+
* @param {number} businessId
|
|
24746
|
+
* @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
|
|
24747
|
+
* @param {*} [options] Override http request option.
|
|
24748
|
+
* @throws {RequiredError}
|
|
24749
|
+
* @memberof LoyaltyIntegerationsApiInterface
|
|
24750
|
+
*/
|
|
24751
|
+
createLoyaltyUser(businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options?: AxiosRequestConfig): AxiosPromise<CreateLoyaltyProgramUserResponseDto>;
|
|
24599
24752
|
/**
|
|
24600
24753
|
*
|
|
24601
24754
|
* @summary Get admin transaction history
|
|
@@ -24656,6 +24809,16 @@ export interface LoyaltyIntegerationsApiInterface {
|
|
|
24656
24809
|
* @extends {BaseAPI}
|
|
24657
24810
|
*/
|
|
24658
24811
|
export declare class LoyaltyIntegerationsApi extends BaseAPI implements LoyaltyIntegerationsApiInterface {
|
|
24812
|
+
/**
|
|
24813
|
+
*
|
|
24814
|
+
* @summary Create loyalty user
|
|
24815
|
+
* @param {number} businessId
|
|
24816
|
+
* @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
|
|
24817
|
+
* @param {*} [options] Override http request option.
|
|
24818
|
+
* @throws {RequiredError}
|
|
24819
|
+
* @memberof LoyaltyIntegerationsApi
|
|
24820
|
+
*/
|
|
24821
|
+
createLoyaltyUser(businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLoyaltyProgramUserResponseDto, any, {}>>;
|
|
24659
24822
|
/**
|
|
24660
24823
|
*
|
|
24661
24824
|
* @summary Get admin transaction history
|
|
@@ -27917,13 +28080,6 @@ export declare const StationsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
27917
28080
|
* @throws {RequiredError}
|
|
27918
28081
|
*/
|
|
27919
28082
|
syncStation: (syncStationDto: SyncStationDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27920
|
-
/**
|
|
27921
|
-
*
|
|
27922
|
-
* @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
|
|
27923
|
-
* @param {*} [options] Override http request option.
|
|
27924
|
-
* @throws {RequiredError}
|
|
27925
|
-
*/
|
|
27926
|
-
syncTerminal: (syncTerminalDto: SyncTerminalDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27927
28083
|
};
|
|
27928
28084
|
/**
|
|
27929
28085
|
* StationsApi - functional programming interface
|
|
@@ -27949,13 +28105,6 @@ export declare const StationsApiFp: (configuration?: Configuration) => {
|
|
|
27949
28105
|
* @throws {RequiredError}
|
|
27950
28106
|
*/
|
|
27951
28107
|
syncStation(syncStationDto: SyncStationDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StationSyncResponseDto>>;
|
|
27952
|
-
/**
|
|
27953
|
-
*
|
|
27954
|
-
* @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
|
|
27955
|
-
* @param {*} [options] Override http request option.
|
|
27956
|
-
* @throws {RequiredError}
|
|
27957
|
-
*/
|
|
27958
|
-
syncTerminal(syncTerminalDto: SyncTerminalDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StationSyncResponseDto>>;
|
|
27959
28108
|
};
|
|
27960
28109
|
/**
|
|
27961
28110
|
* StationsApi - factory interface
|
|
@@ -27981,13 +28130,6 @@ export declare const StationsApiFactory: (configuration?: Configuration, basePat
|
|
|
27981
28130
|
* @throws {RequiredError}
|
|
27982
28131
|
*/
|
|
27983
28132
|
syncStation(syncStationDto: SyncStationDto, options?: any): AxiosPromise<StationSyncResponseDto>;
|
|
27984
|
-
/**
|
|
27985
|
-
*
|
|
27986
|
-
* @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
|
|
27987
|
-
* @param {*} [options] Override http request option.
|
|
27988
|
-
* @throws {RequiredError}
|
|
27989
|
-
*/
|
|
27990
|
-
syncTerminal(syncTerminalDto: SyncTerminalDto, options?: any): AxiosPromise<StationSyncResponseDto>;
|
|
27991
28133
|
};
|
|
27992
28134
|
/**
|
|
27993
28135
|
* StationsApi - interface
|
|
@@ -28017,14 +28159,6 @@ export interface StationsApiInterface {
|
|
|
28017
28159
|
* @memberof StationsApiInterface
|
|
28018
28160
|
*/
|
|
28019
28161
|
syncStation(syncStationDto: SyncStationDto, options?: AxiosRequestConfig): AxiosPromise<StationSyncResponseDto>;
|
|
28020
|
-
/**
|
|
28021
|
-
*
|
|
28022
|
-
* @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
|
|
28023
|
-
* @param {*} [options] Override http request option.
|
|
28024
|
-
* @throws {RequiredError}
|
|
28025
|
-
* @memberof StationsApiInterface
|
|
28026
|
-
*/
|
|
28027
|
-
syncTerminal(syncTerminalDto: SyncTerminalDto, options?: AxiosRequestConfig): AxiosPromise<StationSyncResponseDto>;
|
|
28028
28162
|
}
|
|
28029
28163
|
/**
|
|
28030
28164
|
* StationsApi - object-oriented interface
|
|
@@ -28055,14 +28189,6 @@ export declare class StationsApi extends BaseAPI implements StationsApiInterface
|
|
|
28055
28189
|
* @memberof StationsApi
|
|
28056
28190
|
*/
|
|
28057
28191
|
syncStation(syncStationDto: SyncStationDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StationSyncResponseDto, any, {}>>;
|
|
28058
|
-
/**
|
|
28059
|
-
*
|
|
28060
|
-
* @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
|
|
28061
|
-
* @param {*} [options] Override http request option.
|
|
28062
|
-
* @throws {RequiredError}
|
|
28063
|
-
* @memberof StationsApi
|
|
28064
|
-
*/
|
|
28065
|
-
syncTerminal(syncTerminalDto: SyncTerminalDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StationSyncResponseDto, any, {}>>;
|
|
28066
28192
|
}
|
|
28067
28193
|
/**
|
|
28068
28194
|
* TerminalApi - axios parameter creator
|