@leavittsoftware/lg-core-typescript 2.0.437 → 2.0.438

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api3.leavitt.com.js","sourceRoot":"","sources":["api3.leavitt.com.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lg.net.core.js","sourceRoot":"","sources":["lg.net.core.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,mBAAmB;AACnB,uCAAuC;AACvC,oBAAoB;AACpB,yBAAyB;AA8hJzB,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,qDAAY,CAAA;IACZ,6CAAQ,CAAA;AACZ,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAID,MAAM,CAAN,IAAY,eAMX;AAND,WAAY,eAAe;IACvB,uEAAiB,CAAA;IACjB,6EAAoB,CAAA;IACpB,uDAAS,CAAA;IACT,uDAAS,CAAA;IACT,qDAAQ,CAAA;AACZ,CAAC,EANW,eAAe,KAAf,eAAe,QAM1B;AAID,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IACzB,uEAAe,CAAA;IACf,iEAAY,CAAA;AAChB,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAID,MAAM,CAAN,IAAY,eAUX;AAVD,WAAY,eAAe;IACvB,uEAAiB,CAAA;IACjB,qEAAgB,CAAA;IAChB,yEAAkB,CAAA;IAClB,qFAAwB,CAAA;IACxB,mFAAuB,CAAA;IACvB,mEAAe,CAAA;IACf,mEAAe,CAAA;IACf,0DAAW,CAAA;IACX,oDAAQ,CAAA;AACZ,CAAC,EAVW,eAAe,KAAf,eAAe,QAU1B;AAID,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,6DAAgB,CAAA;IAChB,mEAAmB,CAAA;IACnB,qEAAoB,CAAA;IACpB,iEAAkB,CAAA;AACt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ID,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACtB,+DAAc,CAAA;IACd,+DAAc,CAAA;IACd,6DAAa,CAAA;AACjB,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAID,MAAM,CAAN,IAAY,YAwBX;AAxBD,WAAY,YAAY;IACpB,gEAAkB,CAAA;IAClB,oDAAY,CAAA;IACZ,gDAAU,CAAA;IACV,sEAAqB,CAAA;IACrB,sDAAa,CAAA;IACb,0EAAuB,CAAA;IACvB,8DAAiB,CAAA;IACjB,4DAAgB,CAAA;IAChB,8DAAiB,CAAA;IACjB,kDAAW,CAAA;IACX,wEAAsB,CAAA;IACtB,kFAA2B,CAAA;IAC3B,0EAAuB,CAAA;IACvB,0EAAuB,CAAA;IACvB,oEAAoB,CAAA;IACpB,mEAAoB,CAAA;IACpB,yEAAuB,CAAA;IACvB,uDAAc,CAAA;IACd,yDAAe,CAAA;IACf,qGAAqC,CAAA;IACrC,mGAAoC,CAAA;IACpC,mEAAoB,CAAA;IACpB,uEAAsB,CAAA;AAC1B,CAAC,EAxBW,YAAY,KAAZ,YAAY,QAwBvB;AAID,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,uDAAQ,CAAA;IACR,uDAAQ,CAAA;AACZ,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B;AAID,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IACvB,qEAAgB,CAAA;IAChB,2EAAmB,CAAA;IACnB,qEAAgB,CAAA;IAChB,6DAAY,CAAA;IACZ,uDAAS,CAAA;IACT,uEAAiB,CAAA;AACrB,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B"}
@@ -0,0 +1,51 @@
1
+ // ----------------------
2
+ // <auto-generated>
3
+ // generated using a custom program
4
+ // </auto-generated>
5
+ // ----------------------
6
+ export var GrantType;
7
+ (function (GrantType) {
8
+ GrantType[GrantType["refresh_token"] = 0] = "refresh_token";
9
+ GrantType[GrantType["token"] = 1] = "token";
10
+ GrantType[GrantType["password"] = 2] = "password";
11
+ GrantType[GrantType["client_credentials"] = 3] = "client_credentials";
12
+ GrantType[GrantType["authorization_code"] = 4] = "authorization_code";
13
+ })(GrantType || (GrantType = {}));
14
+ export var SecondFactorType;
15
+ (function (SecondFactorType) {
16
+ SecondFactorType[SecondFactorType["none"] = 0] = "none";
17
+ SecondFactorType[SecondFactorType["push"] = 1] = "push";
18
+ SecondFactorType[SecondFactorType["sms"] = 2] = "sms";
19
+ SecondFactorType[SecondFactorType["call"] = 3] = "call";
20
+ SecondFactorType[SecondFactorType["totp"] = 4] = "totp";
21
+ SecondFactorType[SecondFactorType["token"] = 5] = "token";
22
+ SecondFactorType[SecondFactorType["token_hardware"] = 6] = "token_hardware";
23
+ SecondFactorType[SecondFactorType["token_software"] = 7] = "token_software";
24
+ SecondFactorType[SecondFactorType["question"] = 8] = "question";
25
+ SecondFactorType[SecondFactorType["web"] = 9] = "web";
26
+ SecondFactorType[SecondFactorType["email"] = 10] = "email";
27
+ SecondFactorType[SecondFactorType["u2f"] = 11] = "u2f";
28
+ SecondFactorType[SecondFactorType["webauthn"] = 12] = "webauthn";
29
+ SecondFactorType[SecondFactorType["custom"] = 13] = "custom";
30
+ })(SecondFactorType || (SecondFactorType = {}));
31
+ export var TokenType;
32
+ (function (TokenType) {
33
+ TokenType[TokenType["bearer"] = 0] = "bearer";
34
+ TokenType[TokenType["mac"] = 1] = "mac";
35
+ })(TokenType || (TokenType = {}));
36
+ export var OAuthAccountStatus;
37
+ (function (OAuthAccountStatus) {
38
+ OAuthAccountStatus[OAuthAccountStatus["Locked"] = 0] = "Locked";
39
+ OAuthAccountStatus[OAuthAccountStatus["Disabled"] = 1] = "Disabled";
40
+ OAuthAccountStatus[OAuthAccountStatus["PasswordExpired"] = 2] = "PasswordExpired";
41
+ OAuthAccountStatus[OAuthAccountStatus["Active"] = 3] = "Active";
42
+ OAuthAccountStatus[OAuthAccountStatus["NeverLoggedIn"] = 4] = "NeverLoggedIn";
43
+ OAuthAccountStatus[OAuthAccountStatus["NotActivated"] = 20] = "NotActivated";
44
+ })(OAuthAccountStatus || (OAuthAccountStatus = {}));
45
+ export var AccountType;
46
+ (function (AccountType) {
47
+ AccountType[AccountType["Ldap"] = 0] = "Ldap";
48
+ AccountType[AccountType["Okta"] = 1] = "Okta";
49
+ AccountType[AccountType["Standard"] = 2] = "Standard";
50
+ })(AccountType || (AccountType = {}));
51
+ //# sourceMappingURL=oauth2.leavitt.com.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth2.leavitt.com.js","sourceRoot":"","sources":["oauth2.leavitt.com.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,mBAAmB;AACnB,uCAAuC;AACvC,oBAAoB;AACpB,yBAAyB;AAqDzB,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACjB,2DAAiB,CAAA;IACjB,2CAAS,CAAA;IACT,iDAAY,CAAA;IACZ,qEAAsB,CAAA;IACtB,qEAAsB,CAAA;AAC1B,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAID,MAAM,CAAN,IAAY,gBAeX;AAfD,WAAY,gBAAgB;IACxB,uDAAQ,CAAA;IACR,uDAAQ,CAAA;IACR,qDAAO,CAAA;IACP,uDAAQ,CAAA;IACR,uDAAQ,CAAA;IACR,yDAAS,CAAA;IACT,2EAAkB,CAAA;IAClB,2EAAkB,CAAA;IAClB,+DAAY,CAAA;IACZ,qDAAO,CAAA;IACP,0DAAU,CAAA;IACV,sDAAQ,CAAA;IACR,gEAAa,CAAA;IACb,4DAAW,CAAA;AACf,CAAC,EAfW,gBAAgB,KAAhB,gBAAgB,QAe3B;AAID,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,6CAAU,CAAA;IACV,uCAAO,CAAA;AACX,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAID,MAAM,CAAN,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC1B,+DAAU,CAAA;IACV,mEAAY,CAAA;IACZ,iFAAmB,CAAA;IACnB,+DAAU,CAAA;IACV,6EAAiB,CAAA;IACjB,4EAAiB,CAAA;AACrB,CAAC,EAPW,kBAAkB,KAAlB,kBAAkB,QAO7B;AAID,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,6CAAQ,CAAA;IACR,6CAAQ,CAAA;IACR,qDAAY,CAAA;AAChB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB"}
@@ -0,0 +1,112 @@
1
+ // ----------------------
2
+ // <auto-generated>
3
+ // generated using a custom program
4
+ // </auto-generated>
5
+ // ----------------------
6
+
7
+ export interface OauthRequest {
8
+ client_id: string | null;
9
+ client_secret: string | null;
10
+ }
11
+
12
+ export interface OauthTokenRequest {
13
+ claim_scopes: Array<string> | null;
14
+ client_id: string | null;
15
+ client_secret: string | null;
16
+ code: string | null;
17
+ grant_type: GrantTypeString;
18
+ password: string | null;
19
+ redirect_uri: string | null;
20
+ refresh_token: string | null;
21
+ second_factor_answer: string | null;
22
+ second_factor_id: string | null;
23
+ second_factor_type: SecondFactorTypeString | null;
24
+ send_challenge: boolean;
25
+ username: string | null;
26
+ }
27
+
28
+ export interface OauthTokenResponse {
29
+ access_token: string | null;
30
+ expires_in: number;
31
+ refresh_token: string | null;
32
+ token_type: TokenTypeString | null;
33
+ }
34
+
35
+ export interface ResetPasswordDto {
36
+ NewPassword: string | null;
37
+ ResetCode: string | null;
38
+ Username: string | null;
39
+ }
40
+
41
+ export interface SecondFactor {
42
+ display_data: string | null;
43
+ factor_id: string | null;
44
+ type: SecondFactorTypeString;
45
+ vendor_name: string | null;
46
+ }
47
+
48
+ export interface UserMetaData {
49
+ AccountStatus: OAuthAccountStatusString | null;
50
+ AccountType: AccountTypeString | null;
51
+ Factors: Array<Partial<SecondFactor>> | null;
52
+ HasActiveActivationCode: boolean;
53
+ HasActivePasswordResetCode: boolean;
54
+ HasActiveUnlockCode: boolean;
55
+ PersonId: number;
56
+ }
57
+
58
+ export enum GrantType {
59
+ refresh_token = 0,
60
+ token = 1,
61
+ password = 2,
62
+ client_credentials = 3,
63
+ authorization_code = 4
64
+ }
65
+
66
+ export type GrantTypeString = keyof typeof GrantType;
67
+
68
+ export enum SecondFactorType {
69
+ none = 0,
70
+ push = 1,
71
+ sms = 2,
72
+ call = 3,
73
+ totp = 4,
74
+ token = 5,
75
+ token_hardware = 6,
76
+ token_software = 7,
77
+ question = 8,
78
+ web = 9,
79
+ email = 10,
80
+ u2f = 11,
81
+ webauthn = 12,
82
+ custom = 13
83
+ }
84
+
85
+ export type SecondFactorTypeString = keyof typeof SecondFactorType;
86
+
87
+ export enum TokenType {
88
+ bearer = 0,
89
+ mac = 1
90
+ }
91
+
92
+ export type TokenTypeString = keyof typeof TokenType;
93
+
94
+ export enum OAuthAccountStatus {
95
+ Locked = 0,
96
+ Disabled = 1,
97
+ PasswordExpired = 2,
98
+ Active = 3,
99
+ NeverLoggedIn = 4,
100
+ NotActivated = 20
101
+ }
102
+
103
+ export type OAuthAccountStatusString = keyof typeof OAuthAccountStatus;
104
+
105
+ export enum AccountType {
106
+ Ldap = 0,
107
+ Okta = 1,
108
+ Standard = 2
109
+ }
110
+
111
+ export type AccountTypeString = keyof typeof AccountType;
112
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leavittsoftware/lg-core-typescript",
3
- "version": "2.0.437",
3
+ "version": "2.0.438",
4
4
  "description": "Typescript of lg core",
5
5
  "main": "lg.core.js",
6
6
  "files": [
@@ -13,13 +13,16 @@
13
13
  "elasticsearch.js.map",
14
14
  "elasticsearch.js",
15
15
  "elasticsearch.ts",
16
+ "oauth2.leavitt.com.ts",
17
+ "oauth2.leavitt.com.js",
18
+ "oauth2.leavitt.com.js.map",
16
19
  "api2.leavitt.com.map",
17
20
  "api2.leavitt.com.js",
18
21
  "api2.leavitt.com.ts",
19
- "api3.leavitt.com.map",
22
+ "api3.leavitt.com.js.map",
20
23
  "api3.leavitt.com.js",
21
24
  "api3.leavitt.com.ts",
22
- "lg.net.core.map",
25
+ "lg.net.core.js.map",
23
26
  "lg.net.core.js",
24
27
  "lg.net.core.ts",
25
28
  "lg.ams360.datawarehouse.js.map",