@djangocfg/api 2.1.287 → 2.1.290

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.
@@ -65,6 +65,7 @@ var Auth = class {
65
65
  static {
66
66
  __name(this, "Auth");
67
67
  }
68
+ client;
68
69
  constructor(client) {
69
70
  this.client = client;
70
71
  }
@@ -82,6 +83,7 @@ var Oauth = class {
82
83
  static {
83
84
  __name(this, "Oauth");
84
85
  }
86
+ client;
85
87
  constructor(client) {
86
88
  this.client = client;
87
89
  }
@@ -139,6 +141,7 @@ var UserProfile = class {
139
141
  static {
140
142
  __name(this, "UserProfile");
141
143
  }
144
+ client;
142
145
  constructor(client) {
143
146
  this.client = client;
144
147
  }
@@ -221,6 +224,7 @@ var Accounts = class {
221
224
  static {
222
225
  __name(this, "Accounts");
223
226
  }
227
+ client;
224
228
  constructor(client) {
225
229
  this.client = client;
226
230
  }
@@ -414,6 +418,8 @@ var APILogger = class {
414
418
  static {
415
419
  __name(this, "APILogger");
416
420
  }
421
+ config;
422
+ consola;
417
423
  constructor(config = {}) {
418
424
  this.config = { ...DEFAULT_CONFIG, ...config };
419
425
  this.consola = config.consola || (0, import_consola.createConsola)({
@@ -609,10 +615,20 @@ __name(withRetry, "withRetry");
609
615
 
610
616
  // src/_api/generated/cfg_accounts/client.ts
611
617
  var APIClient = class {
618
+ static {
619
+ __name(this, "APIClient");
620
+ }
621
+ baseUrl;
622
+ httpClient;
623
+ logger = null;
624
+ retryConfig = null;
625
+ tokenGetter = null;
626
+ // Sub-clients
627
+ auth;
628
+ oauth;
629
+ user_profile;
630
+ accounts;
612
631
  constructor(baseUrl, options) {
613
- this.logger = null;
614
- this.retryConfig = null;
615
- this.tokenGetter = null;
616
632
  this.baseUrl = baseUrl.replace(/\/$/, "");
617
633
  this.httpClient = options?.httpClient || new FetchAdapter();
618
634
  this.tokenGetter = options?.tokenGetter || null;
@@ -627,9 +643,6 @@ var APIClient = class {
627
643
  this.user_profile = new UserProfile(this);
628
644
  this.accounts = new Accounts(this);
629
645
  }
630
- static {
631
- __name(this, "APIClient");
632
- }
633
646
  /**
634
647
  * Get CSRF token from cookies (for SessionAuthentication).
635
648
  *
@@ -836,6 +849,7 @@ var LocalStorageAdapter = class {
836
849
  static {
837
850
  __name(this, "LocalStorageAdapter");
838
851
  }
852
+ logger;
839
853
  constructor(logger2) {
840
854
  this.logger = logger2;
841
855
  }
@@ -1103,10 +1117,22 @@ function detectLocale() {
1103
1117
  }
1104
1118
  __name(detectLocale, "detectLocale");
1105
1119
  var API = class {
1120
+ static {
1121
+ __name(this, "API");
1122
+ }
1123
+ baseUrl;
1124
+ _client;
1125
+ _token = null;
1126
+ _refreshToken = null;
1127
+ _locale = null;
1128
+ storage;
1129
+ options;
1130
+ // Sub-clients
1131
+ auth;
1132
+ oauth;
1133
+ user_profile;
1134
+ accounts;
1106
1135
  constructor(baseUrl, options) {
1107
- this._token = null;
1108
- this._refreshToken = null;
1109
- this._locale = null;
1110
1136
  this.baseUrl = baseUrl;
1111
1137
  this.options = options;
1112
1138
  const logger2 = options?.loggerConfig ? new APILogger(options.loggerConfig) : void 0;
@@ -1125,9 +1151,6 @@ var API = class {
1125
1151
  this.user_profile = this._client.user_profile;
1126
1152
  this.accounts = this._client.accounts;
1127
1153
  }
1128
- static {
1129
- __name(this, "API");
1130
- }
1131
1154
  _loadTokensFromStorage() {
1132
1155
  this._token = this.storage.getItem(TOKEN_KEY);
1133
1156
  this._refreshToken = this.storage.getItem(REFRESH_TOKEN_KEY);
@@ -1268,6 +1291,8 @@ var APILogger2 = class {
1268
1291
  static {
1269
1292
  __name(this, "APILogger");
1270
1293
  }
1294
+ config;
1295
+ consola;
1271
1296
  constructor(config = {}) {
1272
1297
  this.config = { ...DEFAULT_CONFIG2, ...config };
1273
1298
  this.consola = config.consola || (0, import_consola6.createConsola)({
@@ -1425,14 +1450,6 @@ var api = new API(
1425
1450
  storage: new LocalStorageAdapter()
1426
1451
  }
1427
1452
  );
1428
- var BaseClient = class {
1429
- static {
1430
- __name(this, "BaseClient");
1431
- }
1432
- static {
1433
- this.api = api;
1434
- }
1435
- };
1436
1453
 
1437
1454
  // src/auth/utils/logger.ts
1438
1455
  var import_consola8 = require("consola");