node-appwrite 22.1.0 → 22.1.1

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.
Files changed (56) hide show
  1. package/README.md +1 -1
  2. package/dist/client.js +6 -5
  3. package/dist/client.js.map +1 -1
  4. package/dist/client.mjs +6 -1477
  5. package/dist/client.mjs.map +1 -1
  6. package/dist/enums/build-runtime.d.mts +20 -0
  7. package/dist/enums/build-runtime.d.ts +20 -0
  8. package/dist/enums/build-runtime.js +20 -0
  9. package/dist/enums/build-runtime.js.map +1 -1
  10. package/dist/enums/build-runtime.mjs +20 -0
  11. package/dist/enums/build-runtime.mjs.map +1 -1
  12. package/dist/enums/runtime.d.mts +20 -0
  13. package/dist/enums/runtime.d.ts +20 -0
  14. package/dist/enums/runtime.js +20 -0
  15. package/dist/enums/runtime.js.map +1 -1
  16. package/dist/enums/runtime.mjs +20 -0
  17. package/dist/enums/runtime.mjs.map +1 -1
  18. package/dist/enums/scopes.d.mts +4 -1
  19. package/dist/enums/scopes.d.ts +4 -1
  20. package/dist/enums/scopes.js +3 -0
  21. package/dist/enums/scopes.js.map +1 -1
  22. package/dist/enums/scopes.mjs +3 -0
  23. package/dist/enums/scopes.mjs.map +1 -1
  24. package/dist/index.d.mts +1 -0
  25. package/dist/index.d.ts +1 -0
  26. package/dist/index.js +5 -0
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +1 -0
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/models.d.mts +180 -2
  31. package/dist/models.d.ts +180 -2
  32. package/dist/query.d.mts +22 -0
  33. package/dist/query.d.ts +22 -0
  34. package/dist/query.js +22 -0
  35. package/dist/query.js.map +1 -1
  36. package/dist/query.mjs +22 -0
  37. package/dist/query.mjs.map +1 -1
  38. package/dist/services/activities.d.mts +60 -0
  39. package/dist/services/activities.d.ts +60 -0
  40. package/dist/services/activities.js +61 -0
  41. package/dist/services/activities.js.map +1 -0
  42. package/dist/services/activities.mjs +60 -0
  43. package/dist/services/activities.mjs.map +1 -0
  44. package/dist/services/databases.d.mts +16 -4
  45. package/dist/services/databases.d.ts +16 -4
  46. package/dist/services/databases.js +24 -4
  47. package/dist/services/databases.js.map +1 -1
  48. package/dist/services/databases.mjs +24 -4
  49. package/dist/services/databases.mjs.map +1 -1
  50. package/dist/services/tables-db.d.mts +16 -4
  51. package/dist/services/tables-db.d.ts +16 -4
  52. package/dist/services/tables-db.js +24 -4
  53. package/dist/services/tables-db.js.map +1 -1
  54. package/dist/services/tables-db.mjs +24 -4
  55. package/dist/services/tables-db.mjs.map +1 -1
  56. package/package.json +1 -1
@@ -1032,6 +1032,7 @@ declare class TablesDB {
1032
1032
  * @param {boolean} params.required - Is column required?
1033
1033
  * @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
1034
1034
  * @param {boolean} params.array - Is column an array?
1035
+ * @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1035
1036
  * @throws {AppwriteException}
1036
1037
  * @returns {Promise<Models.ColumnLongtext>}
1037
1038
  */
@@ -1042,6 +1043,7 @@ declare class TablesDB {
1042
1043
  required: boolean;
1043
1044
  xdefault?: string;
1044
1045
  array?: boolean;
1046
+ encrypt?: boolean;
1045
1047
  }): Promise<Models.ColumnLongtext>;
1046
1048
  /**
1047
1049
  * Create a longtext column.
@@ -1053,11 +1055,12 @@ declare class TablesDB {
1053
1055
  * @param {boolean} required - Is column required?
1054
1056
  * @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
1055
1057
  * @param {boolean} array - Is column an array?
1058
+ * @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1056
1059
  * @throws {AppwriteException}
1057
1060
  * @returns {Promise<Models.ColumnLongtext>}
1058
1061
  * @deprecated Use the object parameter style method for a better developer experience.
1059
1062
  */
1060
- createLongtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnLongtext>;
1063
+ createLongtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnLongtext>;
1061
1064
  /**
1062
1065
  * Update a longtext column. Changing the `default` value will not update already existing rows.
1063
1066
  *
@@ -1104,6 +1107,7 @@ declare class TablesDB {
1104
1107
  * @param {boolean} params.required - Is column required?
1105
1108
  * @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
1106
1109
  * @param {boolean} params.array - Is column an array?
1110
+ * @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1107
1111
  * @throws {AppwriteException}
1108
1112
  * @returns {Promise<Models.ColumnMediumtext>}
1109
1113
  */
@@ -1114,6 +1118,7 @@ declare class TablesDB {
1114
1118
  required: boolean;
1115
1119
  xdefault?: string;
1116
1120
  array?: boolean;
1121
+ encrypt?: boolean;
1117
1122
  }): Promise<Models.ColumnMediumtext>;
1118
1123
  /**
1119
1124
  * Create a mediumtext column.
@@ -1125,11 +1130,12 @@ declare class TablesDB {
1125
1130
  * @param {boolean} required - Is column required?
1126
1131
  * @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
1127
1132
  * @param {boolean} array - Is column an array?
1133
+ * @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1128
1134
  * @throws {AppwriteException}
1129
1135
  * @returns {Promise<Models.ColumnMediumtext>}
1130
1136
  * @deprecated Use the object parameter style method for a better developer experience.
1131
1137
  */
1132
- createMediumtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnMediumtext>;
1138
+ createMediumtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnMediumtext>;
1133
1139
  /**
1134
1140
  * Update a mediumtext column. Changing the `default` value will not update already existing rows.
1135
1141
  *
@@ -1431,6 +1437,7 @@ declare class TablesDB {
1431
1437
  * @param {boolean} params.required - Is column required?
1432
1438
  * @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
1433
1439
  * @param {boolean} params.array - Is column an array?
1440
+ * @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1434
1441
  * @throws {AppwriteException}
1435
1442
  * @returns {Promise<Models.ColumnText>}
1436
1443
  */
@@ -1441,6 +1448,7 @@ declare class TablesDB {
1441
1448
  required: boolean;
1442
1449
  xdefault?: string;
1443
1450
  array?: boolean;
1451
+ encrypt?: boolean;
1444
1452
  }): Promise<Models.ColumnText>;
1445
1453
  /**
1446
1454
  * Create a text column.
@@ -1452,11 +1460,12 @@ declare class TablesDB {
1452
1460
  * @param {boolean} required - Is column required?
1453
1461
  * @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
1454
1462
  * @param {boolean} array - Is column an array?
1463
+ * @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1455
1464
  * @throws {AppwriteException}
1456
1465
  * @returns {Promise<Models.ColumnText>}
1457
1466
  * @deprecated Use the object parameter style method for a better developer experience.
1458
1467
  */
1459
- createTextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnText>;
1468
+ createTextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnText>;
1460
1469
  /**
1461
1470
  * Update a text column. Changing the `default` value will not update already existing rows.
1462
1471
  *
@@ -1576,6 +1585,7 @@ declare class TablesDB {
1576
1585
  * @param {boolean} params.required - Is column required?
1577
1586
  * @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
1578
1587
  * @param {boolean} params.array - Is column an array?
1588
+ * @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1579
1589
  * @throws {AppwriteException}
1580
1590
  * @returns {Promise<Models.ColumnVarchar>}
1581
1591
  */
@@ -1587,6 +1597,7 @@ declare class TablesDB {
1587
1597
  required: boolean;
1588
1598
  xdefault?: string;
1589
1599
  array?: boolean;
1600
+ encrypt?: boolean;
1590
1601
  }): Promise<Models.ColumnVarchar>;
1591
1602
  /**
1592
1603
  * Create a varchar column.
@@ -1599,11 +1610,12 @@ declare class TablesDB {
1599
1610
  * @param {boolean} required - Is column required?
1600
1611
  * @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
1601
1612
  * @param {boolean} array - Is column an array?
1613
+ * @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1602
1614
  * @throws {AppwriteException}
1603
1615
  * @returns {Promise<Models.ColumnVarchar>}
1604
1616
  * @deprecated Use the object parameter style method for a better developer experience.
1605
1617
  */
1606
- createVarcharColumn(databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnVarchar>;
1618
+ createVarcharColumn(databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnVarchar>;
1607
1619
  /**
1608
1620
  * Update a varchar column. Changing the `default` value will not update already existing rows.
1609
1621
  *
@@ -1032,6 +1032,7 @@ declare class TablesDB {
1032
1032
  * @param {boolean} params.required - Is column required?
1033
1033
  * @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
1034
1034
  * @param {boolean} params.array - Is column an array?
1035
+ * @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1035
1036
  * @throws {AppwriteException}
1036
1037
  * @returns {Promise<Models.ColumnLongtext>}
1037
1038
  */
@@ -1042,6 +1043,7 @@ declare class TablesDB {
1042
1043
  required: boolean;
1043
1044
  xdefault?: string;
1044
1045
  array?: boolean;
1046
+ encrypt?: boolean;
1045
1047
  }): Promise<Models.ColumnLongtext>;
1046
1048
  /**
1047
1049
  * Create a longtext column.
@@ -1053,11 +1055,12 @@ declare class TablesDB {
1053
1055
  * @param {boolean} required - Is column required?
1054
1056
  * @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
1055
1057
  * @param {boolean} array - Is column an array?
1058
+ * @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1056
1059
  * @throws {AppwriteException}
1057
1060
  * @returns {Promise<Models.ColumnLongtext>}
1058
1061
  * @deprecated Use the object parameter style method for a better developer experience.
1059
1062
  */
1060
- createLongtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnLongtext>;
1063
+ createLongtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnLongtext>;
1061
1064
  /**
1062
1065
  * Update a longtext column. Changing the `default` value will not update already existing rows.
1063
1066
  *
@@ -1104,6 +1107,7 @@ declare class TablesDB {
1104
1107
  * @param {boolean} params.required - Is column required?
1105
1108
  * @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
1106
1109
  * @param {boolean} params.array - Is column an array?
1110
+ * @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1107
1111
  * @throws {AppwriteException}
1108
1112
  * @returns {Promise<Models.ColumnMediumtext>}
1109
1113
  */
@@ -1114,6 +1118,7 @@ declare class TablesDB {
1114
1118
  required: boolean;
1115
1119
  xdefault?: string;
1116
1120
  array?: boolean;
1121
+ encrypt?: boolean;
1117
1122
  }): Promise<Models.ColumnMediumtext>;
1118
1123
  /**
1119
1124
  * Create a mediumtext column.
@@ -1125,11 +1130,12 @@ declare class TablesDB {
1125
1130
  * @param {boolean} required - Is column required?
1126
1131
  * @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
1127
1132
  * @param {boolean} array - Is column an array?
1133
+ * @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1128
1134
  * @throws {AppwriteException}
1129
1135
  * @returns {Promise<Models.ColumnMediumtext>}
1130
1136
  * @deprecated Use the object parameter style method for a better developer experience.
1131
1137
  */
1132
- createMediumtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnMediumtext>;
1138
+ createMediumtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnMediumtext>;
1133
1139
  /**
1134
1140
  * Update a mediumtext column. Changing the `default` value will not update already existing rows.
1135
1141
  *
@@ -1431,6 +1437,7 @@ declare class TablesDB {
1431
1437
  * @param {boolean} params.required - Is column required?
1432
1438
  * @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
1433
1439
  * @param {boolean} params.array - Is column an array?
1440
+ * @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1434
1441
  * @throws {AppwriteException}
1435
1442
  * @returns {Promise<Models.ColumnText>}
1436
1443
  */
@@ -1441,6 +1448,7 @@ declare class TablesDB {
1441
1448
  required: boolean;
1442
1449
  xdefault?: string;
1443
1450
  array?: boolean;
1451
+ encrypt?: boolean;
1444
1452
  }): Promise<Models.ColumnText>;
1445
1453
  /**
1446
1454
  * Create a text column.
@@ -1452,11 +1460,12 @@ declare class TablesDB {
1452
1460
  * @param {boolean} required - Is column required?
1453
1461
  * @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
1454
1462
  * @param {boolean} array - Is column an array?
1463
+ * @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1455
1464
  * @throws {AppwriteException}
1456
1465
  * @returns {Promise<Models.ColumnText>}
1457
1466
  * @deprecated Use the object parameter style method for a better developer experience.
1458
1467
  */
1459
- createTextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnText>;
1468
+ createTextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnText>;
1460
1469
  /**
1461
1470
  * Update a text column. Changing the `default` value will not update already existing rows.
1462
1471
  *
@@ -1576,6 +1585,7 @@ declare class TablesDB {
1576
1585
  * @param {boolean} params.required - Is column required?
1577
1586
  * @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
1578
1587
  * @param {boolean} params.array - Is column an array?
1588
+ * @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1579
1589
  * @throws {AppwriteException}
1580
1590
  * @returns {Promise<Models.ColumnVarchar>}
1581
1591
  */
@@ -1587,6 +1597,7 @@ declare class TablesDB {
1587
1597
  required: boolean;
1588
1598
  xdefault?: string;
1589
1599
  array?: boolean;
1600
+ encrypt?: boolean;
1590
1601
  }): Promise<Models.ColumnVarchar>;
1591
1602
  /**
1592
1603
  * Create a varchar column.
@@ -1599,11 +1610,12 @@ declare class TablesDB {
1599
1610
  * @param {boolean} required - Is column required?
1600
1611
  * @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
1601
1612
  * @param {boolean} array - Is column an array?
1613
+ * @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
1602
1614
  * @throws {AppwriteException}
1603
1615
  * @returns {Promise<Models.ColumnVarchar>}
1604
1616
  * @deprecated Use the object parameter style method for a better developer experience.
1605
1617
  */
1606
- createVarcharColumn(databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnVarchar>;
1618
+ createVarcharColumn(databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnVarchar>;
1607
1619
  /**
1608
1620
  * Update a varchar column. Changing the `default` value will not update already existing rows.
1609
1621
  *
@@ -1562,7 +1562,8 @@ class TablesDB {
1562
1562
  key: rest[1],
1563
1563
  required: rest[2],
1564
1564
  xdefault: rest[3],
1565
- array: rest[4]
1565
+ array: rest[4],
1566
+ encrypt: rest[5]
1566
1567
  };
1567
1568
  }
1568
1569
  const databaseId = params.databaseId;
@@ -1571,6 +1572,7 @@ class TablesDB {
1571
1572
  const required = params.required;
1572
1573
  const xdefault = params.xdefault;
1573
1574
  const array = params.array;
1575
+ const encrypt = params.encrypt;
1574
1576
  if (typeof databaseId === "undefined") {
1575
1577
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
1576
1578
  }
@@ -1597,6 +1599,9 @@ class TablesDB {
1597
1599
  if (typeof array !== "undefined") {
1598
1600
  payload["array"] = array;
1599
1601
  }
1602
+ if (typeof encrypt !== "undefined") {
1603
+ payload["encrypt"] = encrypt;
1604
+ }
1600
1605
  const uri = new URL(this.client.config.endpoint + apiPath);
1601
1606
  const apiHeaders = {
1602
1607
  "content-type": "application/json"
@@ -1676,7 +1681,8 @@ class TablesDB {
1676
1681
  key: rest[1],
1677
1682
  required: rest[2],
1678
1683
  xdefault: rest[3],
1679
- array: rest[4]
1684
+ array: rest[4],
1685
+ encrypt: rest[5]
1680
1686
  };
1681
1687
  }
1682
1688
  const databaseId = params.databaseId;
@@ -1685,6 +1691,7 @@ class TablesDB {
1685
1691
  const required = params.required;
1686
1692
  const xdefault = params.xdefault;
1687
1693
  const array = params.array;
1694
+ const encrypt = params.encrypt;
1688
1695
  if (typeof databaseId === "undefined") {
1689
1696
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
1690
1697
  }
@@ -1711,6 +1718,9 @@ class TablesDB {
1711
1718
  if (typeof array !== "undefined") {
1712
1719
  payload["array"] = array;
1713
1720
  }
1721
+ if (typeof encrypt !== "undefined") {
1722
+ payload["encrypt"] = encrypt;
1723
+ }
1714
1724
  const uri = new URL(this.client.config.endpoint + apiPath);
1715
1725
  const apiHeaders = {
1716
1726
  "content-type": "application/json"
@@ -2201,7 +2211,8 @@ class TablesDB {
2201
2211
  key: rest[1],
2202
2212
  required: rest[2],
2203
2213
  xdefault: rest[3],
2204
- array: rest[4]
2214
+ array: rest[4],
2215
+ encrypt: rest[5]
2205
2216
  };
2206
2217
  }
2207
2218
  const databaseId = params.databaseId;
@@ -2210,6 +2221,7 @@ class TablesDB {
2210
2221
  const required = params.required;
2211
2222
  const xdefault = params.xdefault;
2212
2223
  const array = params.array;
2224
+ const encrypt = params.encrypt;
2213
2225
  if (typeof databaseId === "undefined") {
2214
2226
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
2215
2227
  }
@@ -2236,6 +2248,9 @@ class TablesDB {
2236
2248
  if (typeof array !== "undefined") {
2237
2249
  payload["array"] = array;
2238
2250
  }
2251
+ if (typeof encrypt !== "undefined") {
2252
+ payload["encrypt"] = encrypt;
2253
+ }
2239
2254
  const uri = new URL(this.client.config.endpoint + apiPath);
2240
2255
  const apiHeaders = {
2241
2256
  "content-type": "application/json"
@@ -2430,7 +2445,8 @@ class TablesDB {
2430
2445
  size: rest[2],
2431
2446
  required: rest[3],
2432
2447
  xdefault: rest[4],
2433
- array: rest[5]
2448
+ array: rest[5],
2449
+ encrypt: rest[6]
2434
2450
  };
2435
2451
  }
2436
2452
  const databaseId = params.databaseId;
@@ -2440,6 +2456,7 @@ class TablesDB {
2440
2456
  const required = params.required;
2441
2457
  const xdefault = params.xdefault;
2442
2458
  const array = params.array;
2459
+ const encrypt = params.encrypt;
2443
2460
  if (typeof databaseId === "undefined") {
2444
2461
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
2445
2462
  }
@@ -2472,6 +2489,9 @@ class TablesDB {
2472
2489
  if (typeof array !== "undefined") {
2473
2490
  payload["array"] = array;
2474
2491
  }
2492
+ if (typeof encrypt !== "undefined") {
2493
+ payload["encrypt"] = encrypt;
2494
+ }
2475
2495
  const uri = new URL(this.client.config.endpoint + apiPath);
2476
2496
  const apiHeaders = {
2477
2497
  "content-type": "application/json"