dub 0.71.1 → 0.71.3

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 (90) hide show
  1. package/README.md +43 -29
  2. package/dist/commonjs/lib/config.d.ts +3 -3
  3. package/dist/commonjs/lib/config.js +3 -3
  4. package/dist/commonjs/models/operations/createpartner.d.ts +56 -56
  5. package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
  6. package/dist/commonjs/models/operations/createpartner.js +87 -93
  7. package/dist/commonjs/models/operations/createpartner.js.map +1 -1
  8. package/dist/commonjs/models/operations/listpartners.d.ts +56 -56
  9. package/dist/commonjs/models/operations/listpartners.d.ts.map +1 -1
  10. package/dist/commonjs/models/operations/listpartners.js +93 -88
  11. package/dist/commonjs/models/operations/listpartners.js.map +1 -1
  12. package/dist/commonjs/models/operations/listpayouts.d.ts +5 -164
  13. package/dist/commonjs/models/operations/listpayouts.d.ts.map +1 -1
  14. package/dist/commonjs/models/operations/listpayouts.js +3 -101
  15. package/dist/commonjs/models/operations/listpayouts.js.map +1 -1
  16. package/dist/commonjs/sdk/customers.d.ts +6 -6
  17. package/dist/commonjs/sdk/customers.d.ts.map +1 -1
  18. package/dist/commonjs/sdk/customers.js +8 -8
  19. package/dist/commonjs/sdk/customers.js.map +1 -1
  20. package/dist/commonjs/sdk/domains.d.ts +10 -10
  21. package/dist/commonjs/sdk/domains.d.ts.map +1 -1
  22. package/dist/commonjs/sdk/domains.js +13 -13
  23. package/dist/commonjs/sdk/domains.js.map +1 -1
  24. package/dist/commonjs/sdk/folders.d.ts +10 -10
  25. package/dist/commonjs/sdk/folders.d.ts.map +1 -1
  26. package/dist/commonjs/sdk/folders.js +13 -13
  27. package/dist/commonjs/sdk/folders.js.map +1 -1
  28. package/dist/commonjs/sdk/links.d.ts +19 -19
  29. package/dist/commonjs/sdk/links.d.ts.map +1 -1
  30. package/dist/commonjs/sdk/links.js +24 -24
  31. package/dist/commonjs/sdk/links.js.map +1 -1
  32. package/dist/commonjs/sdk/partners.d.ts +10 -10
  33. package/dist/commonjs/sdk/partners.d.ts.map +1 -1
  34. package/dist/commonjs/sdk/partners.js +13 -13
  35. package/dist/commonjs/sdk/partners.js.map +1 -1
  36. package/dist/commonjs/sdk/tags.d.ts +10 -10
  37. package/dist/commonjs/sdk/tags.d.ts.map +1 -1
  38. package/dist/commonjs/sdk/tags.js +13 -13
  39. package/dist/commonjs/sdk/tags.js.map +1 -1
  40. package/dist/esm/lib/config.d.ts +3 -3
  41. package/dist/esm/lib/config.js +3 -3
  42. package/dist/esm/models/operations/createpartner.d.ts +56 -56
  43. package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
  44. package/dist/esm/models/operations/createpartner.js +71 -77
  45. package/dist/esm/models/operations/createpartner.js.map +1 -1
  46. package/dist/esm/models/operations/listpartners.d.ts +56 -56
  47. package/dist/esm/models/operations/listpartners.d.ts.map +1 -1
  48. package/dist/esm/models/operations/listpartners.js +77 -72
  49. package/dist/esm/models/operations/listpartners.js.map +1 -1
  50. package/dist/esm/models/operations/listpayouts.d.ts +5 -164
  51. package/dist/esm/models/operations/listpayouts.d.ts.map +1 -1
  52. package/dist/esm/models/operations/listpayouts.js +2 -99
  53. package/dist/esm/models/operations/listpayouts.js.map +1 -1
  54. package/dist/esm/sdk/customers.d.ts +6 -6
  55. package/dist/esm/sdk/customers.d.ts.map +1 -1
  56. package/dist/esm/sdk/customers.js +8 -8
  57. package/dist/esm/sdk/customers.js.map +1 -1
  58. package/dist/esm/sdk/domains.d.ts +10 -10
  59. package/dist/esm/sdk/domains.d.ts.map +1 -1
  60. package/dist/esm/sdk/domains.js +13 -13
  61. package/dist/esm/sdk/domains.js.map +1 -1
  62. package/dist/esm/sdk/folders.d.ts +10 -10
  63. package/dist/esm/sdk/folders.d.ts.map +1 -1
  64. package/dist/esm/sdk/folders.js +13 -13
  65. package/dist/esm/sdk/folders.js.map +1 -1
  66. package/dist/esm/sdk/links.d.ts +19 -19
  67. package/dist/esm/sdk/links.d.ts.map +1 -1
  68. package/dist/esm/sdk/links.js +24 -24
  69. package/dist/esm/sdk/links.js.map +1 -1
  70. package/dist/esm/sdk/partners.d.ts +10 -10
  71. package/dist/esm/sdk/partners.d.ts.map +1 -1
  72. package/dist/esm/sdk/partners.js +13 -13
  73. package/dist/esm/sdk/partners.js.map +1 -1
  74. package/dist/esm/sdk/tags.d.ts +10 -10
  75. package/dist/esm/sdk/tags.d.ts.map +1 -1
  76. package/dist/esm/sdk/tags.js +13 -13
  77. package/dist/esm/sdk/tags.js.map +1 -1
  78. package/examples/package-lock.json +1 -1
  79. package/jsr.json +1 -1
  80. package/package.json +1 -1
  81. package/src/lib/config.ts +3 -3
  82. package/src/models/operations/createpartner.ts +233 -194
  83. package/src/models/operations/listpartners.ts +194 -231
  84. package/src/models/operations/listpayouts.ts +7 -224
  85. package/src/sdk/customers.ts +14 -14
  86. package/src/sdk/domains.ts +24 -24
  87. package/src/sdk/folders.ts +24 -24
  88. package/src/sdk/links.ts +36 -36
  89. package/src/sdk/partners.ts +23 -23
  90. package/src/sdk/tags.ts +24 -24
@@ -16,23 +16,6 @@ import * as operations from "../models/operations/index.js";
16
16
  import { unwrapAsync } from "../types/fp.js";
17
17
 
18
18
  export class Partners extends ClientSDK {
19
- /**
20
- * Create or update a partner
21
- *
22
- * @remarks
23
- * Creates or updates a partner record (upsert behavior). If a partner with the same email already exists, their program enrollment will be updated with the provided tenantId. If no existing partner is found, a new partner will be created using the supplied information.
24
- */
25
- async create(
26
- request?: operations.CreatePartnerRequestBody | undefined,
27
- options?: RequestOptions,
28
- ): Promise<operations.CreatePartnerResponseBody> {
29
- return unwrapAsync(partnersCreate(
30
- this,
31
- request,
32
- options,
33
- ));
34
- }
35
-
36
19
  /**
37
20
  * List all partners
38
21
  *
@@ -51,16 +34,16 @@ export class Partners extends ClientSDK {
51
34
  }
52
35
 
53
36
  /**
54
- * Create a link for a partner
37
+ * Create or update a partner
55
38
  *
56
39
  * @remarks
57
- * Create a link for a partner that is enrolled in your program.
40
+ * Creates or updates a partner record (upsert behavior). If a partner with the same email already exists, their program enrollment will be updated with the provided tenantId. If no existing partner is found, a new partner will be created using the supplied information.
58
41
  */
59
- async createLink(
60
- request?: operations.CreatePartnerLinkRequestBody | undefined,
42
+ async create(
43
+ request?: operations.CreatePartnerRequestBody | undefined,
61
44
  options?: RequestOptions,
62
- ): Promise<components.LinkSchema> {
63
- return unwrapAsync(partnersCreateLink(
45
+ ): Promise<operations.CreatePartnerResponseBody> {
46
+ return unwrapAsync(partnersCreate(
64
47
  this,
65
48
  request,
66
49
  options,
@@ -84,6 +67,23 @@ export class Partners extends ClientSDK {
84
67
  ));
85
68
  }
86
69
 
70
+ /**
71
+ * Create a link for a partner
72
+ *
73
+ * @remarks
74
+ * Create a link for a partner that is enrolled in your program.
75
+ */
76
+ async createLink(
77
+ request?: operations.CreatePartnerLinkRequestBody | undefined,
78
+ options?: RequestOptions,
79
+ ): Promise<components.LinkSchema> {
80
+ return unwrapAsync(partnersCreateLink(
81
+ this,
82
+ request,
83
+ options,
84
+ ));
85
+ }
86
+
87
87
  /**
88
88
  * Upsert a link for a partner
89
89
  *
package/src/sdk/tags.ts CHANGED
@@ -13,16 +13,16 @@ import { unwrapAsync } from "../types/fp.js";
13
13
 
14
14
  export class Tags extends ClientSDK {
15
15
  /**
16
- * Create a tag
16
+ * Retrieve a list of tags
17
17
  *
18
18
  * @remarks
19
- * Create a tag for the authenticated workspace.
19
+ * Retrieve a list of tags for the authenticated workspace.
20
20
  */
21
- async create(
22
- request?: operations.CreateTagRequestBody | undefined,
21
+ async list(
22
+ request?: operations.GetTagsRequest | undefined,
23
23
  options?: RequestOptions,
24
- ): Promise<components.LinkTagSchemaOutput> {
25
- return unwrapAsync(tagsCreate(
24
+ ): Promise<Array<components.LinkTagSchemaOutput>> {
25
+ return unwrapAsync(tagsList(
26
26
  this,
27
27
  request,
28
28
  options,
@@ -30,16 +30,16 @@ export class Tags extends ClientSDK {
30
30
  }
31
31
 
32
32
  /**
33
- * Retrieve a list of tags
33
+ * Create a tag
34
34
  *
35
35
  * @remarks
36
- * Retrieve a list of tags for the authenticated workspace.
36
+ * Create a tag for the authenticated workspace.
37
37
  */
38
- async list(
39
- request?: operations.GetTagsRequest | undefined,
38
+ async create(
39
+ request?: operations.CreateTagRequestBody | undefined,
40
40
  options?: RequestOptions,
41
- ): Promise<Array<components.LinkTagSchemaOutput>> {
42
- return unwrapAsync(tagsList(
41
+ ): Promise<components.LinkTagSchemaOutput> {
42
+ return unwrapAsync(tagsCreate(
43
43
  this,
44
44
  request,
45
45
  options,
@@ -47,37 +47,37 @@ export class Tags extends ClientSDK {
47
47
  }
48
48
 
49
49
  /**
50
- * Update a tag
50
+ * Delete a tag
51
51
  *
52
52
  * @remarks
53
- * Update a tag in the workspace.
53
+ * Delete a tag from the workspace. All existing links will still work, but they will no longer be associated with this tag.
54
54
  */
55
- async update(
55
+ async delete(
56
56
  id: string,
57
- requestBody?: operations.UpdateTagRequestBody | undefined,
58
57
  options?: RequestOptions,
59
- ): Promise<components.LinkTagSchemaOutput> {
60
- return unwrapAsync(tagsUpdate(
58
+ ): Promise<operations.DeleteTagResponseBody> {
59
+ return unwrapAsync(tagsDelete(
61
60
  this,
62
61
  id,
63
- requestBody,
64
62
  options,
65
63
  ));
66
64
  }
67
65
 
68
66
  /**
69
- * Delete a tag
67
+ * Update a tag
70
68
  *
71
69
  * @remarks
72
- * Delete a tag from the workspace. All existing links will still work, but they will no longer be associated with this tag.
70
+ * Update a tag in the workspace.
73
71
  */
74
- async delete(
72
+ async update(
75
73
  id: string,
74
+ requestBody?: operations.UpdateTagRequestBody | undefined,
76
75
  options?: RequestOptions,
77
- ): Promise<operations.DeleteTagResponseBody> {
78
- return unwrapAsync(tagsDelete(
76
+ ): Promise<components.LinkTagSchemaOutput> {
77
+ return unwrapAsync(tagsUpdate(
79
78
  this,
80
79
  id,
80
+ requestBody,
81
81
  options,
82
82
  ));
83
83
  }