@colijnit/mainapi 300.1.12 → 300.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
1
  export declare enum RelationMethod {
2
- GetBranchesByWarehouseNumber = "getBranchesByWarehouseNumber"
2
+ GetBranchesByWarehouseNumber = "getBranchesByWarehouseNumber",
3
+ GetDefaultWarehouseForUserBranch = "getDefaultWarehouseforUserBranch"
3
4
  }
@@ -4,4 +4,5 @@ exports.RelationMethod = void 0;
4
4
  var RelationMethod;
5
5
  (function (RelationMethod) {
6
6
  RelationMethod["GetBranchesByWarehouseNumber"] = "getBranchesByWarehouseNumber";
7
+ RelationMethod["GetDefaultWarehouseForUserBranch"] = "getDefaultWarehouseforUserBranch";
7
8
  })(RelationMethod || (exports.RelationMethod = RelationMethod = {}));
@@ -3,5 +3,6 @@ export declare enum SimpleBaseDataObjectName {
3
3
  PaymentCondition = "PaymentCondition",
4
4
  StoreGroup = "StoreGroup",
5
5
  Container = "Container",
6
- BranchWarehouse = "BranchWarehouse"
6
+ BranchWarehouse = "BranchWarehouse",
7
+ Warehouse = "Warehouse"
7
8
  }
@@ -8,4 +8,5 @@ var SimpleBaseDataObjectName;
8
8
  SimpleBaseDataObjectName["StoreGroup"] = "StoreGroup";
9
9
  SimpleBaseDataObjectName["Container"] = "Container";
10
10
  SimpleBaseDataObjectName["BranchWarehouse"] = "BranchWarehouse";
11
+ SimpleBaseDataObjectName["Warehouse"] = "Warehouse";
11
12
  })(SimpleBaseDataObjectName || (exports.SimpleBaseDataObjectName = SimpleBaseDataObjectName = {}));
@@ -128,4 +128,5 @@ export declare abstract class MainApiConnection {
128
128
  abstract printStockStickers(printStockStickersRequest: PrintStockStickersRequest): Promise<DataServiceResponseData>;
129
129
  abstract getTransferStickerPrintLayouts(): Promise<DataServiceResponseData>;
130
130
  abstract printTransferStickers(printTransferStickerRequest: PrintTransferStickersRequest): Promise<DataServiceResponseData>;
131
+ abstract getDefaultWarehouseForUserBranch(): Promise<DataServiceResponseData>;
131
132
  }
@@ -144,6 +144,7 @@ export declare class MainApi {
144
144
  printStockStickers(printStockStickersRequest: PrintStockStickersRequest): Promise<DataServiceResponseData>;
145
145
  getTransferStickerPrintLayouts(): Promise<DataServiceResponseData>;
146
146
  printTransferStickers(printTransferStickerRequest: PrintTransferStickersRequest): Promise<DataServiceResponseData>;
147
+ getDefaultWarehouseForUserBranch(): Promise<DataServiceResponseData>;
147
148
  static createConnector(isPublicSession: boolean, sessionExists: boolean): MainApiConnection;
148
149
  private _handleConnectionReset;
149
150
  }
package/build/main-api.js CHANGED
@@ -426,6 +426,11 @@ class MainApi {
426
426
  return yield this.mainApi.printTransferStickers(printTransferStickerRequest);
427
427
  });
428
428
  }
429
+ getDefaultWarehouseForUserBranch() {
430
+ return __awaiter(this, void 0, void 0, function* () {
431
+ return yield this.mainApi.getDefaultWarehouseForUserBranch();
432
+ });
433
+ }
429
434
  static createConnector(isPublicSession, sessionExists) {
430
435
  if (!isPublicSession || sessionExists) {
431
436
  return new main_auth_1.MainAuth();
@@ -122,6 +122,7 @@ export declare class MainAuth extends MainApiConnection {
122
122
  createQRCode(width: number, height: number, value: string, showLoader?: boolean): Promise<DataServiceResponseData>;
123
123
  getWarehousesShort(): Promise<DataServiceResponseData>;
124
124
  getBranchesByWarehouseNumber(warehouseNo: number): Promise<DataServiceResponseData>;
125
+ getDefaultWarehouseForUserBranch(): Promise<DataServiceResponseData>;
125
126
  selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
126
127
  private _call;
127
128
  private _callGetSingleImage;
@@ -1176,6 +1176,16 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
1176
1176
  return this._call(data_service_method_enum_1.DataServiceMethod.SelectMultipleObjects, data);
1177
1177
  });
1178
1178
  }
1179
+ getDefaultWarehouseForUserBranch() {
1180
+ return __awaiter(this, void 0, void 0, function* () {
1181
+ const data = {
1182
+ moduleName: module_name_enum_1.ModuleName.SimpleBaseData,
1183
+ methodName: relation_method_enum_1.RelationMethod.GetDefaultWarehouseForUserBranch,
1184
+ refCursorAsArray: true
1185
+ };
1186
+ return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
1187
+ });
1188
+ }
1179
1189
  selectMultiple(moduleName, objectName, operationName, parameterValues, showLoader) {
1180
1190
  if (showLoader === undefined) {
1181
1191
  showLoader = false;
@@ -122,6 +122,7 @@ export declare class MainPublic extends MainApiConnection {
122
122
  printStockStickers(printStockStickersRequest: PrintStockStickersRequest): Promise<DataServiceResponseData>;
123
123
  getTransferStickerPrintLayouts(): Promise<DataServiceResponseData>;
124
124
  printTransferStickers(printTransferStickerRequest: PrintTransferStickersRequest): Promise<DataServiceResponseData>;
125
+ getDefaultWarehouseForUserBranch(): Promise<DataServiceResponseData>;
125
126
  private createServiceRequestData;
126
127
  private _call;
127
128
  private _callAjaxService;
@@ -542,6 +542,12 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
542
542
  return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
543
543
  });
544
544
  }
545
+ getDefaultWarehouseForUserBranch() {
546
+ return __awaiter(this, void 0, void 0, function* () {
547
+ console.warn("getDefaultWarehouseForUserBranch not implemented");
548
+ return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
549
+ });
550
+ }
545
551
  createServiceRequestData() {
546
552
  const data = { languageCode: this.languageCode };
547
553
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/mainapi",
3
- "version": "300.1.12",
3
+ "version": "300.1.13",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",