mobioffice-cli 1.0.1 → 1.0.2

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.
@@ -9,7 +9,7 @@ declare class Company {
9
9
  endpoints: string[];
10
10
  static initCompany(firestore: admin.firestore.Firestore): Promise<void>;
11
11
  static getCompanyIdByNickName(firestore: admin.firestore.Firestore, nickName: string): Promise<string>;
12
- static getOrCreateCompany(firestore: admin.firestore.Firestore, companyDetails: any): Promise<any>;
12
+ static getOrCreateCompany(firestore: admin.firestore.Firestore, companyDetails: any): Promise<any[]>;
13
13
  static createCompany(firestore: admin.firestore.Firestore, companyDetails: any): Promise<any>;
14
14
  static convertCompanyDataType(companyDetails: any): Promise<any>;
15
15
  static updateCompany(firestore: admin.firestore.Firestore, nickName: string, companyDoc: any): Promise<"Updated successfully" | "Company doesn't exists">;
@@ -34,7 +34,7 @@ class Company {
34
34
  .get();
35
35
  if (company_snapshot.empty) {
36
36
  let company = await Company.createCompany(firestore, companyDetails);
37
- return company;
37
+ return [company];
38
38
  }
39
39
  else {
40
40
  let id = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobioffice-cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "mobioffice sdk npm ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",