@leavittsoftware/lg-core-typescript 2.0.437 → 2.0.440

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;AA4hJzB,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"}
package/lg.net.core.ts CHANGED
@@ -4338,12 +4338,18 @@ export interface Signature {
4338
4338
  Name: string | null;
4339
4339
  Person: Partial<Person> | null;
4340
4340
  PersonId: number;
4341
+ SignaturePhotoAttachment: Partial<SignaturePhotoAttachment> | null;
4342
+ SignaturePhotoAttachmentId: number | null;
4341
4343
  SignatureTemplate: Partial<SignatureTemplate> | null;
4342
4344
  SignatureTemplateId: number;
4343
4345
  SignatureValues: Array<Partial<SignatureValue>> | null;
4344
4346
  UpdatedDate: string | null;
4345
4347
  }
4346
4348
 
4349
+ export interface SignaturePhotoAttachment extends IDatabaseAttachment {
4350
+ Signature: Partial<Signature> | null;
4351
+ }
4352
+
4347
4353
  export interface SignatureTemplate {
4348
4354
  CreatedByPerson: Partial<Person> | null;
4349
4355
  CreatedByPersonId: number;
@@ -4374,7 +4380,7 @@ export interface SignatureValue {
4374
4380
  Id: number;
4375
4381
  Key: string | null;
4376
4382
  Signature: Partial<Signature> | null;
4377
- SignatureId: number | null;
4383
+ SignatureId: number;
4378
4384
  Value: string | null;
4379
4385
  }
4380
4386
 
@@ -4485,17 +4491,9 @@ export interface CompanyAddress extends Address {
4485
4491
  LGEmployeeRoleToCompanyAddresses: Array<Partial<LGEmployeeRoleToCompanyAddress>> | null;
4486
4492
  }
4487
4493
 
4488
- export interface CompanyLogo {
4489
- CdnFileName: string | null;
4494
+ export interface CompanyLogo extends IDatabaseAttachment {
4490
4495
  Company: Partial<Company> | null;
4491
4496
  CompanyId: number | null;
4492
- CreatedDate: string;
4493
- Extension: string | null;
4494
- Id: number;
4495
- Name: string | null;
4496
- PreviewExtension: string | null;
4497
- PreviewSizes: string | null;
4498
- Size: number;
4499
4497
  Type: CompanyLogoTypesString;
4500
4498
  }
4501
4499
 
@@ -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;AA2EzB,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,134 @@
1
+ // ----------------------
2
+ // <auto-generated>
3
+ // generated using a custom program
4
+ // </auto-generated>
5
+ // ----------------------
6
+
7
+ export interface OAuthClientDto {
8
+ Id: number;
9
+ Name: string | null;
10
+ Scope: string | null;
11
+ }
12
+
13
+ export interface OauthRequest {
14
+ client_id: string | null;
15
+ client_secret: string | null;
16
+ }
17
+
18
+ export interface OauthTokenRequest {
19
+ claim_scopes: Array<string> | null;
20
+ client_id: string | null;
21
+ client_secret: string | null;
22
+ code: string | null;
23
+ grant_type: GrantTypeString;
24
+ password: string | null;
25
+ redirect_uri: string | null;
26
+ refresh_token: string | null;
27
+ second_factor_answer: string | null;
28
+ second_factor_id: string | null;
29
+ second_factor_type: SecondFactorTypeString | null;
30
+ send_challenge: boolean;
31
+ username: string | null;
32
+ }
33
+
34
+ export interface OauthTokenRequestForCallManager {
35
+ claim_scopes: Array<string> | null;
36
+ client_id: string | null;
37
+ client_secret: string | null;
38
+ code: string | null;
39
+ grant_type: GrantTypeString;
40
+ password: string | null;
41
+ redirect_uri: string | null;
42
+ refresh_token: string | null;
43
+ second_factor_answer: string | null;
44
+ second_factor_id: string | null;
45
+ second_factor_type: SecondFactorTypeString | null;
46
+ send_challenge: boolean;
47
+ username: string | null;
48
+ }
49
+
50
+ export interface OauthTokenResponse {
51
+ access_token: string | null;
52
+ expires_in: number;
53
+ refresh_token: string | null;
54
+ token_type: TokenTypeString | null;
55
+ }
56
+
57
+ export interface ResetPasswordDto {
58
+ NewPassword: string | null;
59
+ ResetCode: string | null;
60
+ Username: string | null;
61
+ }
62
+
63
+ export interface SecondFactor {
64
+ display_data: string | null;
65
+ factor_id: string | null;
66
+ type: SecondFactorTypeString;
67
+ vendor_name: string | null;
68
+ }
69
+
70
+ export interface UserMetaData {
71
+ AccountStatus: OAuthAccountStatusString | null;
72
+ AccountType: AccountTypeString | null;
73
+ Factors: Array<Partial<SecondFactor>> | null;
74
+ HasActiveActivationCode: boolean;
75
+ HasActivePasswordResetCode: boolean;
76
+ HasActiveUnlockCode: boolean;
77
+ PersonId: number;
78
+ }
79
+
80
+ export enum GrantType {
81
+ refresh_token = 0,
82
+ token = 1,
83
+ password = 2,
84
+ client_credentials = 3,
85
+ authorization_code = 4
86
+ }
87
+
88
+ export type GrantTypeString = keyof typeof GrantType;
89
+
90
+ export enum SecondFactorType {
91
+ none = 0,
92
+ push = 1,
93
+ sms = 2,
94
+ call = 3,
95
+ totp = 4,
96
+ token = 5,
97
+ token_hardware = 6,
98
+ token_software = 7,
99
+ question = 8,
100
+ web = 9,
101
+ email = 10,
102
+ u2f = 11,
103
+ webauthn = 12,
104
+ custom = 13
105
+ }
106
+
107
+ export type SecondFactorTypeString = keyof typeof SecondFactorType;
108
+
109
+ export enum TokenType {
110
+ bearer = 0,
111
+ mac = 1
112
+ }
113
+
114
+ export type TokenTypeString = keyof typeof TokenType;
115
+
116
+ export enum OAuthAccountStatus {
117
+ Locked = 0,
118
+ Disabled = 1,
119
+ PasswordExpired = 2,
120
+ Active = 3,
121
+ NeverLoggedIn = 4,
122
+ NotActivated = 20
123
+ }
124
+
125
+ export type OAuthAccountStatusString = keyof typeof OAuthAccountStatus;
126
+
127
+ export enum AccountType {
128
+ Ldap = 0,
129
+ Okta = 1,
130
+ Standard = 2
131
+ }
132
+
133
+ export type AccountTypeString = keyof typeof AccountType;
134
+
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.440",
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",