@conduit-client/generator-ts 3.9.0 → 3.10.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.
package/dist/v1/index.js CHANGED
@@ -3003,6 +3003,11 @@ const WIRE_ADAPTER_CONSTRUCTOR$1 = {
3003
3003
  exportedSymbol: "WireAdapterConstructor",
3004
3004
  isType: true
3005
3005
  };
3006
+ const WIRE_ADAPTER_RESULT = {
3007
+ module: "@conduit-client/service-bindings-lwc/v1",
3008
+ exportedSymbol: "WireAdapterResult",
3009
+ isType: true
3010
+ };
3006
3011
  const LWC_WIRE_BINDINGS = "lwcWireBindings";
3007
3012
  class WireAdapterBindingGenerator {
3008
3013
  constructor(services, commandModel, binding) {
@@ -3032,7 +3037,7 @@ class WireAdapterBindingGenerator {
3032
3037
  );
3033
3038
  }
3034
3039
  buildDeclaration() {
3035
- return code`export let ${this.binding.identifier}:${WIRE_ADAPTER_CONSTRUCTOR$1}<${this.commandConfigTypeImport}, ${this.responseTypeCode}, {}>;`;
3040
+ return code`export let ${this.binding.identifier}:${WIRE_ADAPTER_CONSTRUCTOR$1}<${this.commandConfigTypeImport}, ${WIRE_ADAPTER_RESULT}<${this.responseTypeCode}>, {}>;`;
3036
3041
  }
3037
3042
  get localCommandConstructorName() {
3038
3043
  return `${this.binding.identifier}_ctor`;
@@ -3140,6 +3145,11 @@ const WIRE_ADAPTER_CONSTRUCTOR = {
3140
3145
  exportedSymbol: "WireAdapterConstructor",
3141
3146
  isType: true
3142
3147
  };
3148
+ const GRAPHQL_WIRE_ADAPTER_RESULT = {
3149
+ module: "@conduit-client/service-bindings-lwc/v1",
3150
+ exportedSymbol: "GraphQLWireAdapterResult",
3151
+ isType: true
3152
+ };
3143
3153
  const GRAPHQL_WIRE_BINDINGS = "lwcGraphQLWireBindings";
3144
3154
  class GraphQLWireAdapterBindingGenerator {
3145
3155
  constructor(services, commandModel, binding) {
@@ -3169,7 +3179,7 @@ class GraphQLWireAdapterBindingGenerator {
3169
3179
  );
3170
3180
  }
3171
3181
  buildDeclaration() {
3172
- return code`export let ${this.binding.identifier}:${WIRE_ADAPTER_CONSTRUCTOR}<${this.commandConfigTypeImport}, ${this.responseTypeCode}, {}>;`;
3182
+ return code`export let ${this.binding.identifier}:${WIRE_ADAPTER_CONSTRUCTOR}<${this.commandConfigTypeImport}, ${GRAPHQL_WIRE_ADAPTER_RESULT}, {}>;`;
3173
3183
  }
3174
3184
  get localCommandConstructorName() {
3175
3185
  return `${this.binding.identifier}_ctor`;