@xanots/sdk 0.0.10 → 0.0.11

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 (53) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +38 -0
  3. package/dist/.build-fingerprint +1 -1
  4. package/dist/bin.js +7 -6
  5. package/dist/bundle.d.ts +218 -0
  6. package/dist/bundle.js +143 -0
  7. package/dist/{chunk-5YCQ2QHH.js → chunk-22TKBSDV.js} +2 -2
  8. package/dist/{chunk-YYFXVYPX.js → chunk-4IF54NU5.js} +3 -3
  9. package/dist/{chunk-W24FJHPD.js → chunk-4Q7ZOHH7.js} +2 -2
  10. package/dist/{chunk-4BXJGVZ3.js → chunk-BC2C5GVI.js} +2 -69
  11. package/dist/chunk-BSK7ELHU.js +70 -0
  12. package/dist/chunk-EHP3WPEG.js +21 -0
  13. package/dist/{chunk-75Z74TA7.js → chunk-G4EJMQLD.js} +2 -2
  14. package/dist/{chunk-I7DQDJAM.js → chunk-HYBN4H3F.js} +38 -46
  15. package/dist/chunk-OHX6MIUZ.js +184 -0
  16. package/dist/{chunk-VKSOTZK3.js → chunk-OWGCOGKK.js} +155 -3
  17. package/dist/{chunk-LBYWGMOA.js → chunk-QK7ZQJLP.js} +140 -20
  18. package/dist/{chunk-5R73LFWK.js → chunk-QYMAZRAU.js} +7 -7
  19. package/dist/{chunk-ACCBOMCB.js → chunk-RCT7UX7B.js} +12 -12
  20. package/dist/{chunk-P6TAVLOX.js → chunk-UOZMSF4C.js} +15 -8
  21. package/dist/{chunk-7JDT4PBU.js → chunk-VAF6A3YD.js} +5 -179
  22. package/dist/{chunk-OYMR5AMJ.js → chunk-XEOX6AM7.js} +2 -2
  23. package/dist/cli.js +6 -5
  24. package/dist/{codegen-command-GB3H2KQ7.js → codegen-command-FUT2KJB6.js} +15 -12
  25. package/dist/codegen.d.ts +2 -1
  26. package/dist/{deploy-command-QTIVA22A.js → deploy-command-IP7V7GT4.js} +8 -7
  27. package/dist/index.d.ts +6 -4
  28. package/dist/index.js +10 -9
  29. package/dist/{init-command-MAXULNAD.js → init-command-NPVL32L6.js} +8 -7
  30. package/dist/internal.d.ts +4 -4
  31. package/dist/internal.js +62 -40
  32. package/dist/io-P2H75UV2.js +12 -0
  33. package/dist/{lock-GFXD6G2E.js → lock-46FWYE4D.js} +3 -2
  34. package/dist/{lock-commands-DQ7CUMIV.js → lock-commands-ZZKZ4LZJ.js} +8 -7
  35. package/dist/node.d.ts +5 -4
  36. package/dist/node.js +12 -11
  37. package/dist/{preflight-command-GZ2GE5RN.js → preflight-command-K346GPTY.js} +8 -7
  38. package/dist/{release-command-YUBTNHVX.js → release-command-IMNTIVWK.js} +14 -13
  39. package/dist/response-BQVQ24l1.d.ts +844 -0
  40. package/dist/{store-BG1UPZ3Z.d.ts → store-BLyNeQ8S.d.ts} +16 -3
  41. package/dist/{upgrade-command-FB5QJ363.js → upgrade-command-BN3EHAOI.js} +8 -7
  42. package/dist/{workspace-command-43P42FBP.js → workspace-command-MNK7Y7MQ.js} +15 -12
  43. package/dist/{response-CVAE2kMj.d.ts → xdo-BjJj5W_E.d.ts} +1 -837
  44. package/guides/typed-frontend.md +1 -1
  45. package/llms/filters.md +11 -10
  46. package/llms/kinds-core.md +1 -1
  47. package/llms/statements-data.md +3 -1
  48. package/llms/values.md +1 -1
  49. package/llms-full.txt +41 -30
  50. package/llms.txt +25 -17
  51. package/manifest.json +2 -2
  52. package/package.json +7 -2
  53. package/dist/io-M7XZEMK7.js +0 -11
@@ -1,4 +1,5 @@
1
- import { V as Value, aG as FieldOptions, q as FieldMap, aH as Prettify, $ as RowFromFieldMap, v as FieldXdo, l as ExprNode, y as FromFieldMap, aI as ReadonlyMethods, M as MethodArg, af as TextMethod, ag as TypeBrand, z as IntMethod, D as DecimalMethod, E as EmailMethod, U as PasswordMethod, aJ as XanoFileUpload, T as ObjectRef, aK as XanoDbLink, aL as ConstMethodOpts, p as FieldDescriptor, aj as XanoFileRef, al as XanoGeoValue, ai as VectorMethod, a7 as TableRefMethod, c as BrandValue, a0 as StackItemXdo, a1 as Statement, Z as ResponseDef, aa as TestDef, C as CacheXdo, w as FilterXdo, I as InputXdo, _ as ResultItemXdo, N as MockMap, ad as TestXdo } from './response-CVAE2kMj.js';
1
+ import { V as Value, g as FieldXdo, d as ExprNode, S as StackItemXdo, p as TestDef, C as CacheXdo, h as FilterXdo, I as InputXdo, k as ResultItemXdo, s as TestXdo } from './xdo-BjJj5W_E.js';
2
+ import { W as FieldOptions, h as FieldMap, Y as Prettify, x as RowFromFieldMap, l as FromFieldMap, Z as ReadonlyMethods, M as MethodArg, C as TextMethod, G as TypeBrand, I as IntMethod, D as DecimalMethod, E as EmailMethod, P as PasswordMethod, _ as XanoFileUpload, v as ObjectRef, $ as XanoDbLink, a0 as ConstMethodOpts, f as FieldDescriptor, X as XanoFileRef, K as XanoGeoValue, H as VectorMethod, T as TableRefMethod, b as BrandValue, S as Statement, w as ResponseDef, p as MockMap } from './response-BQVQ24l1.js';
2
3
 
3
4
  /**
4
5
  * The single boolean-expression algebra shared by every SDK surface that emits
@@ -5977,8 +5978,20 @@ interface QueryDef<I extends Record<string, InputDescriptor> = Record<string, In
5977
5978
  * input deploys as a permanently-broken route. `required: true` is NOT
5978
5979
  * demanded, because Xano's own editor leaves path-param inputs unmarked. A
5979
5980
  * marker need not be a whole segment: `"blog/post-{slug}"` routes fine.
5980
- * Inputs that are not in the path are ordinary query-string/body params and
5981
- * need nothing special.
5981
+ *
5982
+ * The CONVERSE is warned rather than enforced. An input that a `GET`/`DELETE`/
5983
+ * `HEAD` looks ONE ROW up by — the match argument of `s.db.get`,
5984
+ * `get_by_id`, `has`, or the by-field edit/patch/delete family — is
5985
+ * ADDRESSING a resource and belongs in the path; `export()` reports
5986
+ * `query.path-segment-candidate` when the path does not bind it. The endpoint
5987
+ * still serves `?blog_id=1`, which is why it is a warning: what it costs is
5988
+ * that the route is not addressable the way a REST client, cache key, or
5989
+ * access log expects, and `getPath()` types as STATIC, so a caller cannot
5990
+ * pass the value positionally. A segment is any value that names WHICH
5991
+ * resource is wanted, not merely one named like a key — `"shop/{country}"`
5992
+ * and `"blog/{category}"` are this shape too. An input that NARROWS A LIST
5993
+ * (an `s.db.query` filter) is the opposite case and correctly stays a
5994
+ * query-string param; inputs that are not in the path need nothing special.
5982
5995
  *
5983
5996
  * Captured as a literal so `getPath({ params })` types its keys from it.
5984
5997
  */
@@ -22,10 +22,10 @@ import {
22
22
  registryUrl,
23
23
  suppressUpdateNotice,
24
24
  upgradeCommand
25
- } from "./chunk-5YCQ2QHH.js";
26
- import "./chunk-ACCBOMCB.js";
25
+ } from "./chunk-22TKBSDV.js";
26
+ import "./chunk-RCT7UX7B.js";
27
27
  import "./chunk-CTD5ZCV6.js";
28
- import "./chunk-OYMR5AMJ.js";
28
+ import "./chunk-XEOX6AM7.js";
29
29
  import "./chunk-F6CYJ7TN.js";
30
30
  import "./chunk-GNPVYOPB.js";
31
31
  import {
@@ -36,12 +36,13 @@ import {
36
36
  success,
37
37
  warn
38
38
  } from "./chunk-EZG76F7R.js";
39
- import "./chunk-VKSOTZK3.js";
39
+ import "./chunk-OWGCOGKK.js";
40
40
  import "./chunk-DIA7CT7J.js";
41
- import "./chunk-LBYWGMOA.js";
41
+ import "./chunk-QK7ZQJLP.js";
42
42
  import "./chunk-WHOJWOSV.js";
43
+ import "./chunk-VAF6A3YD.js";
43
44
  import "./chunk-5XZ744TS.js";
44
- import "./chunk-7JDT4PBU.js";
45
+ import "./chunk-OHX6MIUZ.js";
45
46
 
46
47
  // src/emit/upgrade-command.ts
47
48
  import { readFileSync, writeFileSync } from "fs";
@@ -175,4 +176,4 @@ function messageOf(err) {
175
176
  export {
176
177
  runUpgradeCommand
177
178
  };
178
- //# sourceMappingURL=upgrade-command-FB5QJ363.js.map
179
+ //# sourceMappingURL=upgrade-command-BN3EHAOI.js.map
@@ -11,8 +11,7 @@ import {
11
11
  } from "./chunk-NUQCEOKA.js";
12
12
  import {
13
13
  fetchWorkspaceBundle
14
- } from "./chunk-I7DQDJAM.js";
15
- import "./chunk-3INK4Y4E.js";
14
+ } from "./chunk-HYBN4H3F.js";
16
15
  import "./chunk-ZQ2PKR6R.js";
17
16
  import "./chunk-K5IOND4K.js";
18
17
  import {
@@ -27,19 +26,22 @@ import {
27
26
  fetchOrExplain,
28
27
  httpFailure
29
28
  } from "./chunk-3IGNIP6R.js";
30
- import "./chunk-YYFXVYPX.js";
29
+ import "./chunk-4IF54NU5.js";
31
30
  import "./chunk-KA6G2L7U.js";
32
31
  import "./chunk-ZSYZTGJH.js";
33
- import "./chunk-75Z74TA7.js";
32
+ import "./chunk-G4EJMQLD.js";
34
33
  import "./chunk-LU7TRWMC.js";
35
34
  import "./chunk-YBC3IKMF.js";
36
35
  import "./chunk-ANUDXFEX.js";
37
36
  import "./chunk-Q77KNEUL.js";
38
- import "./chunk-4BXJGVZ3.js";
39
- import "./chunk-P6TAVLOX.js";
40
- import "./chunk-ACCBOMCB.js";
37
+ import "./chunk-BSK7ELHU.js";
38
+ import "./chunk-UOZMSF4C.js";
39
+ import "./chunk-EHP3WPEG.js";
40
+ import "./chunk-3INK4Y4E.js";
41
+ import "./chunk-BC2C5GVI.js";
42
+ import "./chunk-RCT7UX7B.js";
41
43
  import "./chunk-CTD5ZCV6.js";
42
- import "./chunk-OYMR5AMJ.js";
44
+ import "./chunk-XEOX6AM7.js";
43
45
  import {
44
46
  removedSubcommand,
45
47
  unknownSubcommand
@@ -51,12 +53,13 @@ import {
51
53
  step,
52
54
  success
53
55
  } from "./chunk-EZG76F7R.js";
54
- import "./chunk-VKSOTZK3.js";
56
+ import "./chunk-OWGCOGKK.js";
55
57
  import "./chunk-DIA7CT7J.js";
56
- import "./chunk-LBYWGMOA.js";
58
+ import "./chunk-QK7ZQJLP.js";
57
59
  import "./chunk-WHOJWOSV.js";
60
+ import "./chunk-VAF6A3YD.js";
58
61
  import "./chunk-5XZ744TS.js";
59
- import "./chunk-7JDT4PBU.js";
62
+ import "./chunk-OHX6MIUZ.js";
60
63
 
61
64
  // src/emit/workspace-command.ts
62
65
  import { writeFileSync } from "fs";
@@ -159,4 +162,4 @@ async function runExport(args) {
159
162
  export {
160
163
  runWorkspaceCommand
161
164
  };
162
- //# sourceMappingURL=workspace-command-43P42FBP.js.map
165
+ //# sourceMappingURL=workspace-command-MNK7Y7MQ.js.map