meemup-library 1.3.74 → 1.3.75

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,12 +1,13 @@
1
- import IAccount from "../interfaces/IAccount";
2
1
  import IAnswer from "../interfaces/IAnswer";
3
2
  import IDriverAccount from "../interfaces/IDriverAccount";
3
+ import IKitchenDisplayAccount from "../interfaces/kds/IKitchenDisplayAccount";
4
4
  export default class ApiController {
5
5
  private account;
6
- constructor(account: IAccount & IDriverAccount);
6
+ constructor(account: IKitchenDisplayAccount & IDriverAccount);
7
7
  defaultHeader(authorization?: boolean): Promise<{
8
8
  Authorization?: string | undefined;
9
9
  companyId: string;
10
+ deviceIdentifier: string;
10
11
  }>;
11
12
  fetchRequest(url: string, method: string, body?: any, headers?: object, authorization?: boolean, timeout?: number): Promise<IAnswer>;
12
13
  fetchSuccess(response: any): IAnswer;
@@ -137,7 +137,7 @@ export default class ApiController {
137
137
  }
138
138
  defaultHeader() {
139
139
  return __awaiter(this, arguments, void 0, function* (authorization = true) {
140
- return Object.assign({ companyId: this.getCompanyId() }, (authorization ? { Authorization: "Bearer " + this.account.token } : {}));
140
+ return Object.assign({ companyId: this.getCompanyId(), deviceIdentifier: this.account.deviceIdentifier }, (authorization ? { Authorization: "Bearer " + this.account.token } : {}));
141
141
  });
142
142
  }
143
143
  fetchRequest(url_1, method_1) {
@@ -0,0 +1,5 @@
1
+ import IAccount from "../IAccount";
2
+ export default interface IKitchenDisplayAccount extends IAccount {
3
+ deviceIdentifier: string;
4
+ }
5
+ export declare const initKitchenDisplayAccount: IKitchenDisplayAccount;
@@ -0,0 +1,2 @@
1
+ import { initAccount } from "../IAccount";
2
+ export const initKitchenDisplayAccount = Object.assign(Object.assign({}, initAccount), { deviceIdentifier: "" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.3.74",
3
+ "version": "1.3.75",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "remove:one": "rimraf dist",
12
12
  "remove:two": "rimraf ./src/dist",
13
13
  "test": "echo \"Error: no test specified\" && exit 1",
14
- "commit": "git add . && git commit -m \"version.1.3.74 \" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.3.75 \" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"