skikrumb-api 2.1.21 → 2.2.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/index.d.ts CHANGED
@@ -54,6 +54,9 @@ export declare const skiKrumb: (options?: {
54
54
  readOrganizationData: () => Promise<Data[]>;
55
55
  readGateways: () => Promise<Gateways>;
56
56
  readShippingRates: (rateRequest: RateRequest) => Promise<Rates>;
57
+ sendLogs: (payload: {
58
+ logs: any[];
59
+ }) => Promise<unknown>;
57
60
  sendMobileLocation: (payload: {
58
61
  deviceId: string;
59
62
  locations: any[];
package/dist/index.js CHANGED
@@ -472,6 +472,12 @@ export const skiKrumb = (options = {
472
472
  throw error;
473
473
  }
474
474
  };
475
+ const sendLogs = async (payload) => {
476
+ const response = await request
477
+ .post('devices/logs', { json: payload })
478
+ .json();
479
+ return response;
480
+ };
475
481
  const sendMobileLocation = async (payload) => {
476
482
  const response = await request
477
483
  .post('devices/location/mobile', { json: payload })
@@ -799,6 +805,7 @@ export const skiKrumb = (options = {
799
805
  readOrganizationData,
800
806
  readGateways,
801
807
  readShippingRates,
808
+ sendLogs,
802
809
  sendMobileLocation,
803
810
  authenticateExternalUser,
804
811
  refreshSessionToken,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skikrumb-api",
3
- "version": "2.1.21",
3
+ "version": "2.2.0",
4
4
  "description": "Wrapper for the skiKrumb API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,5 +20,6 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "ky": "^1.7.5"
23
- }
23
+ },
24
+ "packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
24
25
  }
@@ -1,11 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Read(//Users/michael/.config/nvim/**)",
5
- "Read(//Users/michael/.config/**)",
6
- "Read(//Users/michael/Code/skikrumb-api/**)"
7
- ],
8
- "deny": [],
9
- "ask": []
10
- }
11
- }