@sp-api-sdk/services-api-v1 2.3.8 → 3.0.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.
@@ -1324,8 +1324,8 @@ exports.GetServiceJobsServiceJobStatusEnum = {
1324
1324
  * @export
1325
1325
  */
1326
1326
  exports.GetServiceJobsSortFieldEnum = {
1327
- Date: 'JOB_DATE',
1328
- Status: 'JOB_STATUS'
1327
+ JobDate: 'JOB_DATE',
1328
+ JobStatus: 'JOB_STATUS'
1329
1329
  };
1330
1330
  /**
1331
1331
  * @export
@@ -78,7 +78,13 @@ class Configuration {
78
78
  this.accessToken = param.accessToken;
79
79
  this.basePath = param.basePath;
80
80
  this.serverIndex = param.serverIndex;
81
- this.baseOptions = param.baseOptions;
81
+ this.baseOptions = {
82
+ headers: {
83
+ ...param.baseOptions?.headers,
84
+ 'User-Agent': "OpenAPI-Generator/typescript-axios"
85
+ },
86
+ ...param.baseOptions
87
+ };
82
88
  this.formDataCtor = param.formDataCtor;
83
89
  }
84
90
  /**
@@ -1314,8 +1314,8 @@ export const GetServiceJobsServiceJobStatusEnum = {
1314
1314
  * @export
1315
1315
  */
1316
1316
  export const GetServiceJobsSortFieldEnum = {
1317
- Date: 'JOB_DATE',
1318
- Status: 'JOB_STATUS'
1317
+ JobDate: 'JOB_DATE',
1318
+ JobStatus: 'JOB_STATUS'
1319
1319
  };
1320
1320
  /**
1321
1321
  * @export
@@ -75,7 +75,13 @@ export class Configuration {
75
75
  this.accessToken = param.accessToken;
76
76
  this.basePath = param.basePath;
77
77
  this.serverIndex = param.serverIndex;
78
- this.baseOptions = param.baseOptions;
78
+ this.baseOptions = {
79
+ headers: {
80
+ ...param.baseOptions?.headers,
81
+ 'User-Agent': "OpenAPI-Generator/typescript-axios"
82
+ },
83
+ ...param.baseOptions
84
+ };
79
85
  this.formDataCtor = param.formDataCtor;
80
86
  }
81
87
  /**
@@ -1130,8 +1130,8 @@ export type GetServiceJobsServiceJobStatusEnum = typeof GetServiceJobsServiceJob
1130
1130
  * @export
1131
1131
  */
1132
1132
  export declare const GetServiceJobsSortFieldEnum: {
1133
- readonly Date: "JOB_DATE";
1134
- readonly Status: "JOB_STATUS";
1133
+ readonly JobDate: "JOB_DATE";
1134
+ readonly JobStatus: "JOB_STATUS";
1135
1135
  };
1136
1136
  export type GetServiceJobsSortFieldEnum = typeof GetServiceJobsSortFieldEnum[keyof typeof GetServiceJobsSortFieldEnum];
1137
1137
  /**
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/services-api-v1",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.",
5
- "version": "2.3.8",
5
+ "version": "3.0.0",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.1.8",
21
+ "@sp-api-sdk/common": "2.1.9",
22
22
  "axios": "^1.7.9"
23
23
  },
24
24
  "repository": {
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "services api"
42
42
  ],
43
- "gitHead": "d8ee43e876007f59ecc6c67831cf797343d6d6e3"
43
+ "gitHead": "00dfa4e5e7dd2f486f00e85e5dab73ea2685eb0f"
44
44
  }