@servicetitan/moneyout-api-client 1.40.0-beta.250 → 1.40.0-beta.252
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/external-authorization-status.api.d.ts +20 -0
- package/dist/external-authorization-status.api.d.ts.map +1 -0
- package/dist/external-authorization-status.api.js +73 -0
- package/dist/external-authorization-status.api.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AxiosPromise, CancelToken } from 'axios';
|
|
2
|
+
export interface IExternalAuthorizationStatus {
|
|
3
|
+
get(tenantId: number, cancelToken?: CancelToken): AxiosPromise<ExternalAuthorizationStatusResponse>;
|
|
4
|
+
}
|
|
5
|
+
export declare const BASE_URL_TOKEN_ExternalAuthorizationStatus: import("@servicetitan/react-ioc").SymbolToken<string>;
|
|
6
|
+
export declare class ExternalAuthorizationStatus implements IExternalAuthorizationStatus {
|
|
7
|
+
private readonly baseUrl;
|
|
8
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
9
|
+
constructor(baseUrl?: string);
|
|
10
|
+
get(tenantId: number, cancelToken?: CancelToken): AxiosPromise<ExternalAuthorizationStatusResponse>;
|
|
11
|
+
}
|
|
12
|
+
export interface ExternalAuthorizationStatusResponse {
|
|
13
|
+
provider: string;
|
|
14
|
+
/** One of "NotAuthorized", "Authorized", "ReauthRequired". Plain string, not an enum —
|
|
15
|
+
this repo's TypeScriptCodegen emits enums as numeric on the wire (see RampProductSelection),
|
|
16
|
+
which would silently desync from these literal values. Mirrors the same string-not-enum
|
|
17
|
+
choice already made for ExternalAuthorizationScopesResponse.Product. */
|
|
18
|
+
status: string;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=external-authorization-status.api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-authorization-status.api.d.ts","sourceRoot":"","sources":["../src/external-authorization-status.api.ts"],"names":[],"mappings":"AASA,OAAc,EAAsB,YAAY,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAM7E,MAAM,WAAW,4BAA4B;IACzC,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC,mCAAmC,CAAC,CAAC;CACvG;AAED,eAAO,MAAM,0CAA0C,uDAA+C,CAAC;AAEvG,qBACa,2BAA4B,YAAW,4BAA4B;IAGA,OAAO,CAAC,QAAQ,CAAC,OAAO;IAFpG,SAAS,CAAC,gBAAgB,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC,GAAG,SAAS,CAAa;gBAEM,OAAO,SAAK;IAGzG,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC,mCAAmC,CAAC;CAoBtG;AAED,MAAM,WAAW,mCAAmC;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB;;;mFAG+E;IAC/E,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
}
|
|
20
|
+
function _ts_metadata(k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
}
|
|
23
|
+
function _ts_param(paramIndex, decorator) {
|
|
24
|
+
return function(target, key) {
|
|
25
|
+
decorator(target, key, paramIndex);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/* tslint:disable */ /* eslint-disable */ //----------------------
|
|
29
|
+
// <auto-generated>
|
|
30
|
+
// Generated with ApiClientGenerator, using the NSwag toolchain
|
|
31
|
+
// </auto-generated>
|
|
32
|
+
//----------------------
|
|
33
|
+
// ReSharper disable InconsistentNaming
|
|
34
|
+
import axios from 'axios';
|
|
35
|
+
import { injectable, inject, optional, symbolToken } from '@servicetitan/react-ioc';
|
|
36
|
+
import { makeCodedException } from './utils';
|
|
37
|
+
export const BASE_URL_TOKEN_ExternalAuthorizationStatus = symbolToken('BASE_URL_TOKEN', false);
|
|
38
|
+
export class ExternalAuthorizationStatus {
|
|
39
|
+
get(tenantId, cancelToken) {
|
|
40
|
+
let url_ = "/v1/tenant/{tenantId}/external-authorization/status";
|
|
41
|
+
if (tenantId === undefined || tenantId === null) throw new Error("The parameter 'tenantId' must be defined.");
|
|
42
|
+
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
43
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
44
|
+
let options_ = {
|
|
45
|
+
baseURL: this.baseUrl,
|
|
46
|
+
cancelToken,
|
|
47
|
+
url: url_,
|
|
48
|
+
method: "GET",
|
|
49
|
+
headers: {
|
|
50
|
+
"Content-Type": "application/json",
|
|
51
|
+
"Accept": "application/json"
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
return makeCodedException(axios.request(options_));
|
|
55
|
+
}
|
|
56
|
+
constructor(baseUrl = ""){
|
|
57
|
+
_define_property(this, "baseUrl", void 0);
|
|
58
|
+
_define_property(this, "jsonParseReviver", void 0);
|
|
59
|
+
this.baseUrl = baseUrl;
|
|
60
|
+
this.jsonParseReviver = undefined;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
ExternalAuthorizationStatus = _ts_decorate([
|
|
64
|
+
injectable(),
|
|
65
|
+
_ts_param(0, inject(BASE_URL_TOKEN_ExternalAuthorizationStatus)),
|
|
66
|
+
_ts_param(0, optional()),
|
|
67
|
+
_ts_metadata("design:type", Function),
|
|
68
|
+
_ts_metadata("design:paramtypes", [
|
|
69
|
+
void 0
|
|
70
|
+
])
|
|
71
|
+
], ExternalAuthorizationStatus);
|
|
72
|
+
|
|
73
|
+
//# sourceMappingURL=external-authorization-status.api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/external-authorization-status.api.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n//----------------------\n// <auto-generated>\n// Generated with ApiClientGenerator, using the NSwag toolchain\n// </auto-generated>\n//----------------------\n// ReSharper disable InconsistentNaming\n\nimport axios, { AxiosRequestConfig, AxiosPromise, CancelToken } from 'axios';\nimport { injectable, inject, optional, symbolToken } from '@servicetitan/react-ioc';\nimport { makeCodedException, makeContent } from './utils';\n// @ts-ignore: needed for Date serialization if a DateTime parameter has an Unspecified attribute on it\nimport moment from 'moment';\n\nexport interface IExternalAuthorizationStatus {\n get(tenantId: number, cancelToken?: CancelToken): AxiosPromise<ExternalAuthorizationStatusResponse>;\n}\n\nexport const BASE_URL_TOKEN_ExternalAuthorizationStatus = symbolToken<string>('BASE_URL_TOKEN', false);\n\n@injectable()\nexport class ExternalAuthorizationStatus implements IExternalAuthorizationStatus {\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\n\n constructor(@inject(BASE_URL_TOKEN_ExternalAuthorizationStatus) @optional() private readonly baseUrl = \"\") {\n }\n\n get(tenantId: number, cancelToken?: CancelToken): AxiosPromise<ExternalAuthorizationStatusResponse> {\n let url_ = \"/v1/tenant/{tenantId}/external-authorization/status\";\n if (tenantId === undefined || tenantId === null)\n throw new Error(\"The parameter 'tenantId' must be defined.\");\n url_ = url_.replace(\"{tenantId}\", encodeURIComponent(\"\" + tenantId));\n url_ = url_.replace(/[?&]$/, \"\");\n\n let options_ = <AxiosRequestConfig>{\n baseURL: this.baseUrl,\n cancelToken,\n url: url_,\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Accept\": \"application/json\"\n }\n };\n\n return makeCodedException(axios.request<ExternalAuthorizationStatusResponse>(options_));\n }\n}\n\nexport interface ExternalAuthorizationStatusResponse {\n provider: string;\n /** One of \"NotAuthorized\", \"Authorized\", \"ReauthRequired\". Plain string, not an enum —\n this repo's TypeScriptCodegen emits enums as numeric on the wire (see RampProductSelection),\n which would silently desync from these literal values. Mirrors the same string-not-enum\n choice already made for ExternalAuthorizationScopesResponse.Product. */\n status: string;\n}\n"],"names":["axios","injectable","inject","optional","symbolToken","makeCodedException","BASE_URL_TOKEN_ExternalAuthorizationStatus","ExternalAuthorizationStatus","get","tenantId","cancelToken","url_","undefined","Error","replace","encodeURIComponent","options_","baseURL","baseUrl","url","method","headers","request","jsonParseReviver"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAAkB,GAClB,kBAAkB,GAClB,wBAAwB;AACxB,mBAAmB;AACnB,mEAAmE;AACnE,oBAAoB;AACpB,wBAAwB;AACxB,uCAAuC;AAEvC,OAAOA,WAA8D,QAAQ;AAC7E,SAASC,UAAU,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,WAAW,QAAQ,0BAA0B;AACpF,SAASC,kBAAkB,QAAqB,UAAU;AAQ1D,OAAO,MAAMC,6CAA6CF,YAAoB,kBAAkB,OAAO;AAGvG,OAAO,MAAMG;IAMTC,IAAIC,QAAgB,EAAEC,WAAyB,EAAqD;QAChG,IAAIC,OAAO;QACX,IAAIF,aAAaG,aAAaH,aAAa,MACvC,MAAM,IAAII,MAAM;QACpBF,OAAOA,KAAKG,OAAO,CAAC,cAAcC,mBAAmB,KAAKN;QAC1DE,OAAOA,KAAKG,OAAO,CAAC,SAAS;QAE7B,IAAIE,WAA+B;YAC/BC,SAAS,IAAI,CAACC,OAAO;YACrBR;YACAS,KAAKR;YACLS,QAAQ;YACRC,SAAS;gBACL,gBAAgB;gBAChB,UAAU;YACd;QACJ;QAEA,OAAOhB,mBAAmBL,MAAMsB,OAAO,CAAsCN;IACjF;IAtBA,YAAY,AAAiFE,UAAU,EAAE,CAAE;;QAF3G,uBAAUK,oBAAV,KAAA;aAE6FL,UAAAA;aAFnFK,mBAAmEX;IAG7E;AAsBJ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * as CardTransactions from './card-transactions.api';
|
|
|
4
4
|
export * as ExpenseManagement from './expense-management.api';
|
|
5
5
|
export * as ExpenseTenantSettings from './expense-tenant-settings.api';
|
|
6
6
|
export * as ExternalAuthorization from './external-authorization.api';
|
|
7
|
+
export * as ExternalAuthorizationStatus from './external-authorization-status.api';
|
|
7
8
|
export * as RampSettings from './ramp-settings.api';
|
|
8
9
|
export * as UserSettings from './user-settings.api';
|
|
9
10
|
export * as VendorSync from './vendor-sync.api';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,wBAAwB,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,qBAAqB,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,wBAAwB,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,qBAAqB,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,2BAA2B,MAAM,qCAAqC,CAAC;AACnF,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,6 +10,8 @@ import * as _ExpenseTenantSettings from './expense-tenant-settings.api';
|
|
|
10
10
|
export { _ExpenseTenantSettings as ExpenseTenantSettings };
|
|
11
11
|
import * as _ExternalAuthorization from './external-authorization.api';
|
|
12
12
|
export { _ExternalAuthorization as ExternalAuthorization };
|
|
13
|
+
import * as _ExternalAuthorizationStatus from './external-authorization-status.api';
|
|
14
|
+
export { _ExternalAuthorizationStatus as ExternalAuthorizationStatus };
|
|
13
15
|
import * as _RampSettings from './ramp-settings.api';
|
|
14
16
|
export { _RampSettings as RampSettings };
|
|
15
17
|
import * as _UserSettings from './user-settings.api';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * as ApBillApprovalSettingsV2 from './ap-bill-approval-settings-v2.api';\nexport * as ApBillApprovalV2 from './ap-bill-approval-v2.api';\nexport * as CardTransactions from './card-transactions.api';\nexport * as ExpenseManagement from './expense-management.api';\nexport * as ExpenseTenantSettings from './expense-tenant-settings.api';\nexport * as ExternalAuthorization from './external-authorization.api';\nexport * as RampSettings from './ramp-settings.api';\nexport * as UserSettings from './user-settings.api';\nexport * as VendorSync from './vendor-sync.api';\n"],"names":["ApBillApprovalSettingsV2","ApBillApprovalV2","CardTransactions","ExpenseManagement","ExpenseTenantSettings","ExternalAuthorization","RampSettings","UserSettings","VendorSync"],"mappings":"AAAA,2CAA0C,qCAAqC;AAA/E,SAAO,6BAAKA,wBAAwB,GAA2C;AAC/E,mCAAkC,4BAA4B;AAA9D,SAAO,qBAAKC,gBAAgB,GAAkC;AAC9D,mCAAkC,0BAA0B;AAA5D,SAAO,qBAAKC,gBAAgB,GAAgC;AAC5D,oCAAmC,2BAA2B;AAA9D,SAAO,sBAAKC,iBAAiB,GAAiC;AAC9D,wCAAuC,gCAAgC;AAAvE,SAAO,0BAAKC,qBAAqB,GAAsC;AACvE,wCAAuC,+BAA+B;AAAtE,SAAO,0BAAKC,qBAAqB,GAAqC;AACtE,+BAA8B,sBAAsB;AAApD,SAAO,iBAAKC,YAAY,GAA4B;AACpD,+BAA8B,sBAAsB;AAApD,SAAO,iBAAKC,YAAY,GAA4B;AACpD,6BAA4B,oBAAoB;AAAhD,SAAO,eAAKC,UAAU,GAA0B"}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * as ApBillApprovalSettingsV2 from './ap-bill-approval-settings-v2.api';\nexport * as ApBillApprovalV2 from './ap-bill-approval-v2.api';\nexport * as CardTransactions from './card-transactions.api';\nexport * as ExpenseManagement from './expense-management.api';\nexport * as ExpenseTenantSettings from './expense-tenant-settings.api';\nexport * as ExternalAuthorization from './external-authorization.api';\nexport * as ExternalAuthorizationStatus from './external-authorization-status.api';\nexport * as RampSettings from './ramp-settings.api';\nexport * as UserSettings from './user-settings.api';\nexport * as VendorSync from './vendor-sync.api';\n"],"names":["ApBillApprovalSettingsV2","ApBillApprovalV2","CardTransactions","ExpenseManagement","ExpenseTenantSettings","ExternalAuthorization","ExternalAuthorizationStatus","RampSettings","UserSettings","VendorSync"],"mappings":"AAAA,2CAA0C,qCAAqC;AAA/E,SAAO,6BAAKA,wBAAwB,GAA2C;AAC/E,mCAAkC,4BAA4B;AAA9D,SAAO,qBAAKC,gBAAgB,GAAkC;AAC9D,mCAAkC,0BAA0B;AAA5D,SAAO,qBAAKC,gBAAgB,GAAgC;AAC5D,oCAAmC,2BAA2B;AAA9D,SAAO,sBAAKC,iBAAiB,GAAiC;AAC9D,wCAAuC,gCAAgC;AAAvE,SAAO,0BAAKC,qBAAqB,GAAsC;AACvE,wCAAuC,+BAA+B;AAAtE,SAAO,0BAAKC,qBAAqB,GAAqC;AACtE,8CAA6C,sCAAsC;AAAnF,SAAO,gCAAKC,2BAA2B,GAA4C;AACnF,+BAA8B,sBAAsB;AAApD,SAAO,iBAAKC,YAAY,GAA4B;AACpD,+BAA8B,sBAAsB;AAApD,SAAO,iBAAKC,YAAY,GAA4B;AACpD,6BAA4B,oBAAoB;AAAhD,SAAO,eAAKC,UAAU,GAA0B"}
|
package/package.json
CHANGED