@codeqr/ts 0.24.1 → 0.25.0

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 (129) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +1 -1
  3. package/README.md +28 -28
  4. package/client.d.mts +10 -10
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +10 -10
  7. package/client.d.ts.map +1 -1
  8. package/client.js +38 -38
  9. package/client.mjs +36 -36
  10. package/core/api-promise.d.mts +2 -2
  11. package/core/api-promise.d.ts +2 -2
  12. package/core/error.d.mts +2 -2
  13. package/core/error.d.ts +2 -2
  14. package/core/error.js +4 -4
  15. package/core/error.mjs +2 -2
  16. package/core/resource.d.mts +3 -3
  17. package/core/resource.d.ts +3 -3
  18. package/index.d.mts +3 -3
  19. package/index.d.ts +3 -3
  20. package/index.js +4 -4
  21. package/index.mjs +3 -3
  22. package/internal/parse.d.mts +2 -2
  23. package/internal/parse.d.ts +2 -2
  24. package/internal/shims.js +1 -1
  25. package/internal/shims.mjs +1 -1
  26. package/internal/uploads.d.mts +4 -4
  27. package/internal/uploads.d.ts +4 -4
  28. package/internal/utils/base64.js +2 -2
  29. package/internal/utils/base64.mjs +3 -3
  30. package/internal/utils/log.d.mts +3 -3
  31. package/internal/utils/log.d.ts +3 -3
  32. package/internal/utils/path.js +1 -1
  33. package/internal/utils/path.mjs +2 -2
  34. package/internal/utils/values.js +5 -5
  35. package/internal/utils/values.mjs +6 -6
  36. package/package.json +3 -3
  37. package/resources/analytics.d.mts +38 -5
  38. package/resources/analytics.d.mts.map +1 -1
  39. package/resources/analytics.d.ts +38 -5
  40. package/resources/analytics.d.ts.map +1 -1
  41. package/resources/domains.d.mts +26 -26
  42. package/resources/domains.d.mts.map +1 -1
  43. package/resources/domains.d.ts +26 -26
  44. package/resources/domains.d.ts.map +1 -1
  45. package/resources/domains.js +8 -8
  46. package/resources/domains.js.map +1 -1
  47. package/resources/domains.mjs +8 -8
  48. package/resources/domains.mjs.map +1 -1
  49. package/resources/events.d.mts +29 -72
  50. package/resources/events.d.mts.map +1 -1
  51. package/resources/events.d.ts +29 -72
  52. package/resources/events.d.ts.map +1 -1
  53. package/resources/index.d.mts +4 -4
  54. package/resources/index.d.mts.map +1 -1
  55. package/resources/index.d.ts +4 -4
  56. package/resources/index.d.ts.map +1 -1
  57. package/resources/links/bulk.d.mts +14 -5
  58. package/resources/links/bulk.d.mts.map +1 -1
  59. package/resources/links/bulk.d.ts +14 -5
  60. package/resources/links/bulk.d.ts.map +1 -1
  61. package/resources/links/index.d.mts +1 -1
  62. package/resources/links/index.d.mts.map +1 -1
  63. package/resources/links/index.d.ts +1 -1
  64. package/resources/links/index.d.ts.map +1 -1
  65. package/resources/links/links.d.mts +263 -237
  66. package/resources/links/links.d.mts.map +1 -1
  67. package/resources/links/links.d.ts +263 -237
  68. package/resources/links/links.d.ts.map +1 -1
  69. package/resources/links/links.js +21 -21
  70. package/resources/links/links.js.map +1 -1
  71. package/resources/links/links.mjs +21 -21
  72. package/resources/links/links.mjs.map +1 -1
  73. package/resources/qrcodes/bulk.d.mts +84 -17
  74. package/resources/qrcodes/bulk.d.mts.map +1 -1
  75. package/resources/qrcodes/bulk.d.ts +84 -17
  76. package/resources/qrcodes/bulk.d.ts.map +1 -1
  77. package/resources/qrcodes/index.d.mts +1 -1
  78. package/resources/qrcodes/index.d.mts.map +1 -1
  79. package/resources/qrcodes/index.d.ts +1 -1
  80. package/resources/qrcodes/index.d.ts.map +1 -1
  81. package/resources/qrcodes/qrcodes.d.mts +409 -223
  82. package/resources/qrcodes/qrcodes.d.mts.map +1 -1
  83. package/resources/qrcodes/qrcodes.d.ts +409 -223
  84. package/resources/qrcodes/qrcodes.d.ts.map +1 -1
  85. package/resources/qrcodes/qrcodes.js +11 -11
  86. package/resources/qrcodes/qrcodes.js.map +1 -1
  87. package/resources/qrcodes/qrcodes.mjs +11 -11
  88. package/resources/qrcodes/qrcodes.mjs.map +1 -1
  89. package/resources/tags.d.mts +12 -12
  90. package/resources/tags.d.mts.map +1 -1
  91. package/resources/tags.d.ts +12 -12
  92. package/resources/tags.d.ts.map +1 -1
  93. package/resources/tags.js +6 -6
  94. package/resources/tags.js.map +1 -1
  95. package/resources/tags.mjs +6 -6
  96. package/resources/tags.mjs.map +1 -1
  97. package/resources/track.d.mts +12 -0
  98. package/resources/track.d.mts.map +1 -1
  99. package/resources/track.d.ts +12 -0
  100. package/resources/track.d.ts.map +1 -1
  101. package/src/client.ts +21 -21
  102. package/src/core/api-promise.ts +4 -4
  103. package/src/core/error.ts +2 -2
  104. package/src/core/resource.ts +3 -3
  105. package/src/index.ts +3 -3
  106. package/src/internal/parse.ts +2 -2
  107. package/src/internal/shims.ts +1 -1
  108. package/src/internal/uploads.ts +5 -5
  109. package/src/internal/utils/base64.ts +3 -3
  110. package/src/internal/utils/log.ts +3 -3
  111. package/src/internal/utils/path.ts +2 -2
  112. package/src/internal/utils/values.ts +6 -6
  113. package/src/resources/analytics.ts +45 -5
  114. package/src/resources/domains.ts +37 -37
  115. package/src/resources/events.ts +48 -82
  116. package/src/resources/index.ts +4 -4
  117. package/src/resources/links/bulk.ts +23 -6
  118. package/src/resources/links/index.ts +1 -1
  119. package/src/resources/links/links.ts +328 -257
  120. package/src/resources/qrcodes/bulk.ts +103 -17
  121. package/src/resources/qrcodes/index.ts +1 -1
  122. package/src/resources/qrcodes/qrcodes.ts +629 -368
  123. package/src/resources/tags.ts +16 -16
  124. package/src/resources/track.ts +14 -0
  125. package/src/version.ts +1 -1
  126. package/version.d.mts +1 -1
  127. package/version.d.ts +1 -1
  128. package/version.js +1 -1
  129. package/version.mjs +1 -1
@@ -14,17 +14,17 @@ export class Tags extends APIResource {
14
14
  }
15
15
 
16
16
  /**
17
- * Retrieve a list of tags for the authenticated workspace.
17
+ * Update a tag in the workspace.
18
18
  */
19
- list(query: TagListParams | null | undefined = {}, options?: RequestOptions): APIPromise<TagListResponse> {
20
- return this._client.get('/tags', { query, ...options });
19
+ update(id: string, body: TagUpdateParams, options?: RequestOptions): APIPromise<Tag> {
20
+ return this._client.put(path`/tags/${id}`, { body, ...options });
21
21
  }
22
22
 
23
23
  /**
24
- * Update a tag in the workspace.
24
+ * Retrieve a list of tags for the authenticated workspace.
25
25
  */
26
- update(id: string, body: TagUpdateParams, options?: RequestOptions): APIPromise<Tag> {
27
- return this._client.put(path`/tags/${id}`, { body, ...options });
26
+ list(query: TagListParams | null | undefined = {}, options?: RequestOptions): APIPromise<TagListResponse> {
27
+ return this._client.get('/tags', { query, ...options });
28
28
  }
29
29
 
30
30
  /**
@@ -80,6 +80,15 @@ export interface TagCreateParams {
80
80
  tag?: string | null;
81
81
  }
82
82
 
83
+ export interface TagUpdateParams {
84
+ name: string;
85
+
86
+ /**
87
+ * The color of the tag
88
+ */
89
+ color?: 'red' | 'yellow' | 'green' | 'blue' | 'purple' | 'pink' | 'brown';
90
+ }
91
+
83
92
  export interface TagListParams {
84
93
  /**
85
94
  * IDs of tags to filter by.
@@ -112,22 +121,13 @@ export interface TagListParams {
112
121
  sortOrder?: 'asc' | 'desc';
113
122
  }
114
123
 
115
- export interface TagUpdateParams {
116
- name: string;
117
-
118
- /**
119
- * The color of the tag
120
- */
121
- color?: 'red' | 'yellow' | 'green' | 'blue' | 'purple' | 'pink' | 'brown';
122
- }
123
-
124
124
  export declare namespace Tags {
125
125
  export {
126
126
  type Tag as Tag,
127
127
  type TagListResponse as TagListResponse,
128
128
  type TagDeleteResponse as TagDeleteResponse,
129
129
  type TagCreateParams as TagCreateParams,
130
- type TagListParams as TagListParams,
131
130
  type TagUpdateParams as TagUpdateParams,
131
+ type TagListParams as TagListParams,
132
132
  };
133
133
  }
@@ -113,6 +113,13 @@ export interface TrackTrackLeadParams {
113
113
  */
114
114
  customerName?: string | null;
115
115
 
116
+ /**
117
+ * Deduplication key shared with your own browser pixel. When your site also fires
118
+ * a Meta or TikTok pixel for this conversion, pass the same event id here so the
119
+ * platform counts it once.
120
+ */
121
+ eventId?: string;
122
+
116
123
  /**
117
124
  * The numerical value associated with this lead event (e.g., number of provisioned
118
125
  * seats in a free trial). If defined as N, the lead event will be tracked N times.
@@ -176,6 +183,13 @@ export interface TrackTrackSaleParams {
176
183
  */
177
184
  customerName?: string | null;
178
185
 
186
+ /**
187
+ * Deduplication key shared with your own browser pixel. When your site also fires
188
+ * a Meta or TikTok pixel for this conversion, pass the same event id here so the
189
+ * platform counts it once.
190
+ */
191
+ eventId?: string;
192
+
179
193
  /**
180
194
  * The name of the sale event. Recommended format: `Invoice paid` or
181
195
  * `Subscription created`.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.24.1'; // x-release-please-version
1
+ export const VERSION = '0.25.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.24.1";
1
+ export declare const VERSION = "0.25.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.24.1";
1
+ export declare const VERSION = "0.25.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.24.1'; // x-release-please-version
4
+ exports.VERSION = '0.25.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.24.1'; // x-release-please-version
1
+ export const VERSION = '0.25.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map